summaryrefslogtreecommitdiffstats
path: root/kscd/ledlamp.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 06:00:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 06:00:15 +0000
commitb1057f437bf65300831a0ccb45b920787c6b318d (patch)
treef8a73db06ca1180d0da0ba6dfbe786197b4f4bc3 /kscd/ledlamp.h
parent4ddfca384ced9ad654213aef9dc2c3973720b980 (diff)
downloadtdemultimedia-b1057f437bf65300831a0ccb45b920787c6b318d.tar.gz
tdemultimedia-b1057f437bf65300831a0ccb45b920787c6b318d.zip
TQt4 port kdemultimedia
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1236079 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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); };