ElidedButton: Make constructor explicit

Prevents implicit conversions to ElidedButton.
This commit is contained in:
Lioncash 2017-08-06 17:31:26 -04:00
parent 5153271278
commit 2363be4c63
1 changed files with 2 additions and 2 deletions

View File

@ -9,8 +9,8 @@
class ElidedButton : public QPushButton class ElidedButton : public QPushButton
{ {
public: public:
ElidedButton(const QString& text = QStringLiteral(""), explicit ElidedButton(const QString& text = QStringLiteral(""),
Qt::TextElideMode elide_mode = Qt::ElideRight); Qt::TextElideMode elide_mode = Qt::ElideRight);
Qt::TextElideMode elideMode() const; Qt::TextElideMode elideMode() const;
void setElideMode(Qt::TextElideMode elide_mode); void setElideMode(Qt::TextElideMode elide_mode);