From 24314562165588b56a318b3b8a846bf5deda7c41 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Tue, 24 Apr 2012 15:49:09 +0200 Subject: Profile introduction Introduce Profiles to store sets of values that describe a system/device. These profiles are held by a target, getting rid of much of the information stored in the Build-/Run-/DeployConfigurations, greatly simplifying those. This is a squash of the wip/profile branch which has been on gerrit for a while, rebased to current master. Change-Id: I25956c8dd4d1962b2134bfaa8a8076ae3909460f Reviewed-by: Daniel Teske --- src/libs/utils/detailsbutton.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/libs/utils/detailsbutton.h') diff --git a/src/libs/utils/detailsbutton.h b/src/libs/utils/detailsbutton.h index 428bec5c8d..d58d718ad6 100644 --- a/src/libs/utils/detailsbutton.h +++ b/src/libs/utils/detailsbutton.h @@ -38,11 +38,15 @@ #include #include +#include + QT_FORWARD_DECLARE_CLASS(QGraphicsOpacityEffect) namespace Utils { class QTCREATOR_UTILS_EXPORT FadingPanel : public QWidget { + Q_OBJECT + public: FadingPanel(QWidget *parent = 0) : QWidget(parent) @@ -51,6 +55,18 @@ public: virtual void setOpacity(qreal value) = 0; }; +class QTCREATOR_UTILS_EXPORT FadingWidget : public FadingPanel +{ + Q_OBJECT +public: + FadingWidget(QWidget *parent = 0); + void fadeTo(qreal value); + qreal opacity(); + void setOpacity(qreal value); +protected: + QGraphicsOpacityEffect *m_opacityEffect; +}; + class QTCREATOR_UTILS_EXPORT DetailsButton : public QAbstractButton { Q_OBJECT -- cgit v1.2.1