comparison widgets/LEDButton.h @ 189:5b7472db612b

* Add large chunks of context help in the optional status bar * Add an extra overlay mode in which even the centre frame is disabled * Fixes to FTP retrieval
author Chris Cannam
date Fri, 19 Jan 2007 13:13:14 +0000
parents 705f05ab42e3
children f4960f8ce798
comparison
equal deleted inserted replaced
188:dd573e090eed 189:5b7472db612b
52 virtual QSize minimumSizeHint() const; 52 virtual QSize minimumSizeHint() const;
53 53
54 signals: 54 signals:
55 void stateChanged(bool); 55 void stateChanged(bool);
56 56
57 void mouseEntered();
58 void mouseLeft();
59
57 public slots: 60 public slots:
58 void toggle(); 61 void toggle();
59 void on(); 62 void on();
60 void off(); 63 void off();
61 64
65 void setDarkFactor(int darkfactor); 68 void setDarkFactor(int darkfactor);
66 69
67 protected: 70 protected:
68 void paintEvent(QPaintEvent *); 71 void paintEvent(QPaintEvent *);
69 void mousePressEvent(QMouseEvent *); 72 void mousePressEvent(QMouseEvent *);
73 void enterEvent(QEvent *);
74 void leaveEvent(QEvent *);
70 75
71 private:
72 bool led_state; 76 bool led_state;
73 QColor led_color; 77 QColor led_color;
74 78
75 private:
76 class LEDButtonPrivate; 79 class LEDButtonPrivate;
77 LEDButtonPrivate *d; 80 LEDButtonPrivate *d;
78 }; 81 };
79 82
80 #endif 83 #endif