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.
This commit is contained in:
Jens Bache-Wiig
2010-02-17 17:09:00 +01:00
parent 5321b38d51
commit 015ffe2835
8 changed files with 191 additions and 114 deletions

View File

@@ -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