diff options
Diffstat (limited to 'libkdegames/kgameprogress.h')
-rw-r--r-- | libkdegames/kgameprogress.h | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/libkdegames/kgameprogress.h b/libkdegames/kgameprogress.h index d4cebe7b..087fc27b 100644 --- a/libkdegames/kgameprogress.h +++ b/libkdegames/kgameprogress.h @@ -47,16 +47,17 @@ * @author Martynas Kunigelis * @version $Id$ */ -class KDE_EXPORT KGameProgress : public TQFrame, public QRangeControl +class KDE_EXPORT KGameProgress : public TQFrame, public TQRangeControl { Q_OBJECT + TQ_OBJECT Q_ENUMS( BarStyle ) - Q_PROPERTY( int value READ value WRITE setValue) - Q_PROPERTY( BarStyle barStyle READ barStyle WRITE setBarStyle ) - Q_PROPERTY( TQColor barColor READ barColor WRITE setBarColor ) - Q_PROPERTY( TQPixmap barPixmap READ barPixmap WRITE setBarPixmap ) - Q_PROPERTY( Orientation orientation READ orientation WRITE setOrientation ) - Q_PROPERTY( bool textEnabled READ textEnabled WRITE setTextEnabled ) + TQ_PROPERTY( int value READ value WRITE setValue) + TQ_PROPERTY( BarStyle barStyle READ barStyle WRITE setBarStyle ) + TQ_PROPERTY( TQColor barColor READ barColor WRITE setBarColor ) + TQ_PROPERTY( TQPixmap barPixmap READ barPixmap WRITE setBarPixmap ) + TQ_PROPERTY( Qt::Orientation orientation READ orientation WRITE setOrientation ) + TQ_PROPERTY( bool textEnabled READ textEnabled WRITE setTextEnabled ) public: /** @@ -70,18 +71,18 @@ public: /** * Construct a horizontal progress bar. */ - KGameProgress(TQWidget *parent=0, const char *name=0); + KGameProgress(TQWidget *tqparent=0, const char *name=0); /** * Construct a progress bar with orientation @p orient. */ - KGameProgress(Orientation orient, TQWidget *parent=0, const char *name=0); + KGameProgress(Qt::Orientation orient, TQWidget *tqparent=0, const char *name=0); /** * Construct a progress bar with minimum, maximum and initial values. */ - KGameProgress(int minValue, int maxValue, int value, Orientation, - TQWidget *parent=0, const char *name=0); + KGameProgress(int minValue, int maxValue, int value, Qt::Orientation, + TQWidget *tqparent=0, const char *name=0); /** * Destruct the progress bar. @@ -108,9 +109,9 @@ public: /** * Set the orientation of the progress bar. * - * Allowed values are @p Horizontal and @p Vertical. + * Allowed values are @pQt::Horizontal and @pQt::Vertical. */ - void setOrientation(Orientation); + void setOrientation(Qt::Orientation); /** * If this is set to @p true, the progress text will be displayed. @@ -149,7 +150,7 @@ public: * * @see setOrientation() */ - Orientation orientation() const; + Qt::Orientation orientation() const; /** * Returns @p true if progress text will be displayed, @@ -161,11 +162,11 @@ public: /** */ - virtual TQSize sizeHint() const; + virtual TQSize tqsizeHint() const; /** */ - virtual TQSize minimumSizeHint() const; + virtual TQSize tqminimumSizeHint() const; /** */ @@ -239,7 +240,7 @@ private: TQColor text_color; TQRect fr; BarStyle bar_style; - Orientation orient; + Qt::Orientation orient; bool text_enabled; TQString format_; void initialize(); |