ElidedButton: Make constructor explicit
Prevents implicit conversions to ElidedButton.
This commit is contained in:
parent
5153271278
commit
2363be4c63
|
@ -9,7 +9,7 @@
|
|||
class ElidedButton : public QPushButton
|
||||
{
|
||||
public:
|
||||
ElidedButton(const QString& text = QStringLiteral(""),
|
||||
explicit ElidedButton(const QString& text = QStringLiteral(""),
|
||||
Qt::TextElideMode elide_mode = Qt::ElideRight);
|
||||
Qt::TextElideMode elideMode() const;
|
||||
void setElideMode(Qt::TextElideMode elide_mode);
|
||||
|
|
Loading…
Reference in New Issue