diff options
Diffstat (limited to 'kscd/ledlamp.h')
-rw-r--r-- | kscd/ledlamp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kscd/ledlamp.h b/kscd/ledlamp.h index 6bd2e44f..f6ba4915 100644 --- a/kscd/ledlamp.h +++ b/kscd/ledlamp.h @@ -42,10 +42,10 @@ public: State state() const { return s; } - void setState(State state) { s= state; tqrepaint(false); } + void setState(State state) { s= state; repaint(false); } - void toggleState() { if (s == On) s= Off; else if (s == Off) s= On; tqrepaint(false); } + void toggleState() { if (s == On) s= Off; else if (s == Off) s= On; repaint(false); } public slots: void toggle() { toggleState(); }; void on() { setState(On); }; |