aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/detailsbutton.h
diff options
context:
space:
mode:
authorJens Bache-Wiig <jbache@trolltech.com>2010-05-07 12:26:01 +0200
committerJens Bache-Wiig <jbache@trolltech.com>2010-05-07 12:33:48 +0200
commit344b4b38879b6373ab7ca8394c7273fa0f36096f (patch)
tree22a0ca136e5dab1ef6d67b709e7513e5784ef793 /src/libs/utils/detailsbutton.h
parent66b970413129ef756872f489bde47995b57ff903 (diff)
Make the toolboxes in Projects Mode nicer
I did a couple of changes to make these more subtle. - Moved inside the details widget - Made them fade in and out - Hide up/down buttons when not required Note, there are some pending changes to Qt to disable the graphicsevent cache that can cause issues when scrolling items. Reviewed-by: thorbjorn
Diffstat (limited to 'src/libs/utils/detailsbutton.h')
-rw-r--r--src/libs/utils/detailsbutton.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libs/utils/detailsbutton.h b/src/libs/utils/detailsbutton.h
index f72f984053..90f4b93e18 100644
--- a/src/libs/utils/detailsbutton.h
+++ b/src/libs/utils/detailsbutton.h
@@ -31,12 +31,26 @@
#define DETAILSBUTTON_H
#include <QtGui/QAbstractButton>
+#include <QtGui/QToolButton>
#include <QtGui/QPixmap>
+#include <QtGui/QPainter>
+#include <QtGui/QGraphicsOpacityEffect>
+#include <QtCore/QPropertyAnimation>
#include "utils_global.h"
namespace Utils {
+class QTCREATOR_UTILS_EXPORT FadingPanel : public QWidget
+{
+public:
+ FadingPanel(QWidget *parent = 0);
+ void fadeTo(float value);
+protected:
+ QGraphicsOpacityEffect *m_opacityEffect;
+};
+
+
class QTCREATOR_UTILS_EXPORT DetailsButton : public QAbstractButton
{
Q_OBJECT