diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-09-28 02:47:54 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-09-28 02:47:54 +0200 |
commit | ea71281629706b4a8187108e4877b440e0e9b4df (patch) | |
tree | 6f3591acbbebc479efeff8cbf1ce679dc6f1d8f2 /application/widgets/LabeledToolButton.h | |
parent | c51512f94036b7d13b98cb02b8e8c1e549e7b448 (diff) | |
download | MultiMC-ea71281629706b4a8187108e4877b440e0e9b4df.tar MultiMC-ea71281629706b4a8187108e4877b440e0e9b4df.tar.gz MultiMC-ea71281629706b4a8187108e4877b440e0e9b4df.tar.lz MultiMC-ea71281629706b4a8187108e4877b440e0e9b4df.tar.xz MultiMC-ea71281629706b4a8187108e4877b440e0e9b4df.zip |
NOISSUE fix aspect ratio issues with the instance icon in the instance toolbar
Diffstat (limited to 'application/widgets/LabeledToolButton.h')
-rw-r--r-- | application/widgets/LabeledToolButton.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/application/widgets/LabeledToolButton.h b/application/widgets/LabeledToolButton.h index 999650fc..449d7fcc 100644 --- a/application/widgets/LabeledToolButton.h +++ b/application/widgets/LabeledToolButton.h @@ -25,13 +25,16 @@ class LabeledToolButton : public QToolButton Q_OBJECT QLabel * m_label; + QIcon m_icon; public: LabeledToolButton(QWidget * parent = 0); QString text() const; void setText(const QString & text); + void setIcon(QIcon icon); virtual QSize sizeHint() const; protected: void resizeEvent(QResizeEvent * event); + void resetIcon(); }; |