summaryrefslogtreecommitdiffstats
path: root/kscd/ledlamp.h
diff options
context:
space:
mode:
Diffstat (limited to 'kscd/ledlamp.h')
-rw-r--r--kscd/ledlamp.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/kscd/ledlamp.h b/kscd/ledlamp.h
index af37edc7..d7673998 100644
--- a/kscd/ledlamp.h
+++ b/kscd/ledlamp.h
@@ -26,14 +26,15 @@
#include <tqframe.h>
-class LedLamp : public QFrame
+class LedLamp : public TQFrame
{
Q_OBJECT
+ TQ_OBJECT
public:
enum Type { Rect, Loop };
- LedLamp(TQWidget *parent=0, Type t=Rect);
+ LedLamp(TQWidget *tqparent=0, Type t=Rect);
enum State { On, Off };
@@ -41,10 +42,10 @@ public:
State state() const { return s; }
- void setState(State state) { s= state; repaint(false); }
+ void setState(State state) { s= state; tqrepaint(false); }
- void toggleState() { if (s == On) s= Off; else if (s == Off) s= On; repaint(false); }
+ void toggleState() { if (s == On) s= Off; else if (s == Off) s= On; tqrepaint(false); }
public slots:
void toggle() { toggleState(); };
void on() { setState(On); };