ElidedButton: Make constructor explicit
Prevents implicit conversions to ElidedButton.
This commit is contained in:
parent
5153271278
commit
2363be4c63
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue