diff options
author | con <qtc-committer@nokia.com> | 2010-11-16 12:30:50 +0100 |
---|---|---|
committer | con <qtc-committer@nokia.com> | 2010-11-16 12:31:09 +0100 |
commit | 98077818fc47c2a53d63317400b616d7f4f2f99a (patch) | |
tree | 84a455c829dbe0993b35d44f6f142767e64ad7fa /src/libs/utils/detailsbutton.h | |
parent | ac51d53587b8d5cc4fd00dfa828a02c2b3e83111 (diff) | |
download | qt-creator-98077818fc47c2a53d63317400b616d7f4f2f99a.tar.gz |
Fix tool buttons in details widget on Mac with raster engine.
Task-number: QTBUG-15170
Diffstat (limited to 'src/libs/utils/detailsbutton.h')
-rw-r--r-- | src/libs/utils/detailsbutton.h | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/src/libs/utils/detailsbutton.h b/src/libs/utils/detailsbutton.h index dfead11411..7691a9640a 100644 --- a/src/libs/utils/detailsbutton.h +++ b/src/libs/utils/detailsbutton.h @@ -42,33 +42,34 @@ namespace Utils { class QTCREATOR_UTILS_EXPORT FadingPanel : public QWidget { public: - FadingPanel(QWidget *parent = 0); - void fadeTo(float value); + FadingPanel(QWidget *parent = 0); + void setOpacity(qreal value); + void fadeTo(float value); protected: - QGraphicsOpacityEffect *m_opacityEffect; + QGraphicsOpacityEffect *m_opacityEffect; }; class QTCREATOR_UTILS_EXPORT DetailsButton : public QAbstractButton { - Q_OBJECT - Q_PROPERTY(float fader READ fader WRITE setFader) + Q_OBJECT + Q_PROPERTY(float fader READ fader WRITE setFader) public: - DetailsButton(QWidget *parent = 0); + DetailsButton(QWidget *parent = 0); - QSize sizeHint() const; - float fader() { return m_fader; } - void setFader(float value) { m_fader = value; update(); } + QSize sizeHint() const; + float fader() { return m_fader; } + void setFader(float value) { m_fader = value; update(); } protected: - void paintEvent(QPaintEvent *e); - bool event(QEvent *e); + void paintEvent(QPaintEvent *e); + bool event(QEvent *e); private: - QPixmap cacheRendering(const QSize &size, bool checked); - QPixmap m_checkedPixmap; - QPixmap m_uncheckedPixmap; - float m_fader; + QPixmap cacheRendering(const QSize &size, bool checked); + QPixmap m_checkedPixmap; + QPixmap m_uncheckedPixmap; + float m_fader; }; } // namespace Utils #endif // DETAILSBUTTON_H |