diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-13 08:32:36 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-13 08:32:36 +0000 |
commit | f7e71d47719ab6094cf4a9fafffa5ea351973522 (patch) | |
tree | 30834aa632d442019e14f88685001d94657d060b /kdeui/kled.h | |
parent | b31cfd9a1ee986fe2ae9a693f3afd7f171dd897c (diff) | |
download | tdelibs-f7e71d47719ab6094cf4a9fafffa5ea351973522.tar.gz tdelibs-f7e71d47719ab6094cf4a9fafffa5ea351973522.zip |
Initial conversion for TQt for Qt4 3.4.0 TP2
This will also compile with TQt for Qt3, and should not cause any problems
with dependent modules such as kdebase. If it does then it needs to be fixed!
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214149 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeui/kled.h')
-rw-r--r-- | kdeui/kled.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kdeui/kled.h b/kdeui/kled.h index 580f01ab4..06683bbaa 100644 --- a/kdeui/kled.h +++ b/kdeui/kled.h @@ -42,12 +42,12 @@ class TQColor; * * @author Joerg Habenicht, Richard J. Moore (rich@kde.org) 1998, 1999 */ -class KDEUI_EXPORT KLed : public QWidget +class KDEUI_EXPORT KLed : public TQWidget { Q_OBJECT Q_ENUMS( State Shape Look ) Q_PROPERTY( State state READ state WRITE setState ) - Q_PROPERTY( Shape shape READ shape WRITE setShape ) + Q_PROPERTY( Shape tqshape READ tqshape WRITE setShape ) Q_PROPERTY( Look look READ look WRITE setLook ) Q_PROPERTY( TQColor color READ color WRITE setColor ) Q_PROPERTY( int darkFactor READ darkFactor WRITE setDarkFactor ) @@ -62,7 +62,7 @@ public: /** * Shades of the lamp. - * @short LED shape + * @short LED tqshape */ enum Shape { Rectangular, Circular }; @@ -114,12 +114,12 @@ public: * @param col Initial color of the LED. * @param state Sets the State. * @param look Sets the Look. - * @param shape Sets the Shape (rectangular or circular) + * @param tqshape Sets the Shape (rectangular or circular) * @param parent Will be handed over to TQWidget. * @param name Will be handed over to TQWidget. * @short Constructor */ - KLed(const TQColor& col, KLed::State state, KLed::Look look, KLed::Shape shape, + KLed(const TQColor& col, KLed::State state, KLed::Look look, KLed::Shape tqshape, TQWidget *parent=0, const char *name=0); @@ -137,7 +137,7 @@ public: */ State state() const; - Shape shape() const; + Shape tqshape() const; /** * Returns the color of the widget @@ -175,13 +175,13 @@ public: void setState( State state ); /** - * Set the shape of the LED to @p s. + * Set the tqshape of the LED to @p s. */ void setShape(Shape s); /** * Toggle the state of the LED from Off to On and vice versa. * - * The widget will be repainted when returning to the main + * The widget will be tqrepainted when returning to the main * event loop. * @short Toggles LED on->off / off->on. * @deprecated, use #toggle() instead. @@ -249,15 +249,15 @@ public: */ void setLook( Look look ); - virtual TQSize sizeHint() const; - virtual TQSize minimumSizeHint() const; + virtual TQSize tqsizeHint() const; + virtual TQSize tqminimumSizeHint() const; public slots: /** * Toggles the state of the led from Off to On or vice versa. * - * The widget repaints itself immediately. + * The widget tqrepaints itself immediately. */ void toggle(); @@ -317,7 +317,7 @@ private: State led_state; TQColor led_color; Look led_look; - Shape led_shape; + Shape led_tqshape; protected: virtual void virtual_hook( int id, void* data ); |