Merge pull request #5894 from lioncash/dqt-elided

ElidedButton: Add missing override specifier to paintEvent()
This commit is contained in:
Anthony 2017-08-06 14:42:56 -07:00 committed by GitHub
commit bc11fad6eb
1 changed files with 3 additions and 3 deletions

View File

@ -9,12 +9,12 @@
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);
private:
void paintEvent(QPaintEvent* event);
void paintEvent(QPaintEvent* event) override;
Qt::TextElideMode m_elide_mode;
};