summaryrefslogtreecommitdiff
path: root/src/plugins/coreplugin/fancyactionbar.h
diff options
context:
space:
mode:
authorJens Bache-Wiig <jbache@trolltech.com>2010-02-17 17:09:00 +0100
committerJens Bache-Wiig <jbache@trolltech.com>2010-02-22 14:36:45 +0100
commit015ffe2835af7819a981e7e489a4fb83fec00cb9 (patch)
tree66bc9a2c486b0622d33da81ec0ca6e04c2c2844a /src/plugins/coreplugin/fancyactionbar.h
parent5321b38d51ad8a1a9098a2e5c19a6da967876221 (diff)
downloadqt-creator-015ffe2835af7819a981e7e489a4fb83fec00cb9.tar.gz
Some polish for the actionbar
* I have simplified and animated the tool buttons a bit. * The panel has been replaced by a very basic clean panel. * The tool buttons have been animated.
Diffstat (limited to 'src/plugins/coreplugin/fancyactionbar.h')
-rw-r--r--src/plugins/coreplugin/fancyactionbar.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/plugins/coreplugin/fancyactionbar.h b/src/plugins/coreplugin/fancyactionbar.h
index 967947c275..cf986c102b 100644
--- a/src/plugins/coreplugin/fancyactionbar.h
+++ b/src/plugins/coreplugin/fancyactionbar.h
@@ -45,17 +45,40 @@ class FancyToolButton : public QToolButton
{
Q_OBJECT
+ Q_PROPERTY(float fader READ fader WRITE setFader)
+
public:
FancyToolButton(QWidget *parent = 0);
void paintEvent(QPaintEvent *event);
+ bool event(QEvent *e);
QSize sizeHint() const;
QSize minimumSizeHint() const;
+ float m_fader;
+ float fader() { return m_fader; }
+ void setFader(float value) { m_fader = value; update(); }
+
private slots:
void actionChanged();
};
+class FancySeparator: public QWidget
+{
+ Q_OBJECT
+
+public:
+ FancySeparator(QWidget *parent = 0) :
+ QWidget(parent)
+ {
+ setMinimumHeight(2);
+ setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
+ }
+ void paintEvent(QPaintEvent *event);
+};
+
+
+
class FancyActionBar : public QWidget
{
Q_OBJECT