phase toolbar visual changes

This commit is contained in:
Max-Wilhelm Bruker 2011-01-10 03:03:12 +01:00
parent 2c186221a6
commit 09595cc691
2 changed files with 50 additions and 16 deletions

View file

@ -13,15 +13,19 @@ class PhaseButton : public QPushButton {
private:
QString phaseText;
bool active;
int activeAnimationCounter;
QTimer *activeAnimationTimer;
QAction *doubleClickAction;
QPixmap activePixmap, inactivePixmap;
QPixmap pixmap;
void updatePixmap(QPixmap &pixmap, bool active);
void updatePixmap(QPixmap &pixmap);
private slots:
void updateAnimation();
public:
PhaseButton(const QIcon &icon, QAction *_doubleClickAction = 0);
void setPhaseText(const QString &_phaseText);
QString getPhaseText() const { return phaseText; }
void setActive(bool _active) { active = _active; update(); }
void setActive(bool _active);
bool getActive() const { return active; }
void triggerDoubleClickAction();
protected: