diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:42:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:42:31 +0000 |
commit | 576eb4299a00bc053db35414406f46372a0f70f2 (patch) | |
tree | 4c030922d533821db464af566188e7d40cc8848c /kjumpingcube/kcubewidget.h | |
parent | 0718336b6017d1a4fc1d626544180a5a2a29ddec (diff) | |
download | tdegames-576eb4299a00bc053db35414406f46372a0f70f2.tar.gz tdegames-576eb4299a00bc053db35414406f46372a0f70f2.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kjumpingcube/kcubewidget.h')
-rw-r--r-- | kjumpingcube/kcubewidget.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kjumpingcube/kcubewidget.h b/kjumpingcube/kcubewidget.h index f0d8d8cd..463a7d89 100644 --- a/kjumpingcube/kcubewidget.h +++ b/kjumpingcube/kcubewidget.h @@ -22,7 +22,7 @@ #ifndef KCUBEWIDGET_H #define KCUBEWIDGET_H -#include <qframe.h> +#include <tqframe.h> #include "cube.h" class QPalette; @@ -32,13 +32,13 @@ class QTimer; /** * */ -class KCubeWidget : public QFrame , public Cube +class KCubeWidget : public TQFrame , public Cube { Q_OBJECT public: /** constructs a new KCubeWidget*/ - KCubeWidget(QWidget* parent=0,const char* name=0 + KCubeWidget(TQWidget* parent=0,const char* name=0 ,Owner owner=Cube::Nobody,int value=1,int max=0); virtual ~KCubeWidget(); @@ -74,8 +74,8 @@ public: /** enables or disables possibility to click a cube*/ static void enableClicks(bool flag); - static void setColor(Owner forWhom, QPalette newPalette); - static QPalette color(Owner forWhom); + static void setColor(Owner forWhom, TQPalette newPalette); + static TQPalette color(Owner forWhom); public slots: /** resets the Cube to default values */ @@ -88,10 +88,10 @@ signals: protected: /** checks, if mouseclick was inside this cube*/ - virtual void mouseReleaseEvent(QMouseEvent*); + virtual void mouseReleaseEvent(TQMouseEvent*); /** refreshs the contents of the Cube */ - virtual void drawContents(QPainter*); + virtual void drawContents(TQPainter*); @@ -108,11 +108,11 @@ private: int _row; int _column; - QTimer *hintTimer; + TQTimer *hintTimer; static bool _clicksAllowed; - static QPalette color1; - static QPalette color2; + static TQPalette color1; + static TQPalette color2; }; |