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 /ksame/StoneWidget.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 'ksame/StoneWidget.h')
-rw-r--r-- | ksame/StoneWidget.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ksame/StoneWidget.h b/ksame/StoneWidget.h index 05276924..b6840055 100644 --- a/ksame/StoneWidget.h +++ b/ksame/StoneWidget.h @@ -22,12 +22,12 @@ #ifndef _STONEWIDGET #define _STONEWIDGET -#include <qwidget.h> +#include <tqwidget.h> #include "StoneField.h" struct StoneSlice; -class StoneWidget : public QWidget { +class StoneWidget : public TQWidget { Q_OBJECT int modified; @@ -37,7 +37,7 @@ class StoneWidget : public QWidget { int sizex, sizey; int field_width, field_height; - QPtrList<QPoint> history; + TQPtrList<TQPoint> history; StoneField stonefield; // picture number of stonemovie @@ -46,15 +46,15 @@ class StoneWidget : public QWidget { StoneSlice **map; public: - StoneWidget( QWidget *parent=0, int x=10,int y=10); + StoneWidget( TQWidget *parent=0, int x=10,int y=10); ~StoneWidget(); unsigned int board(); int score(); int marked(); - QSize size(); + TQSize size(); int colors(); - virtual QSize sizeHint() const; + virtual TQSize sizeHint() const; bool undoPossible() const; @@ -75,10 +75,10 @@ public: int count(int color); protected: - void timerEvent( QTimerEvent *e ); - void paintEvent( QPaintEvent *e ); - void mousePressEvent ( QMouseEvent *e); - void mouseMoveEvent ( QMouseEvent *e); + void timerEvent( TQTimerEvent *e ); + void paintEvent( TQPaintEvent *e ); + void mousePressEvent ( TQMouseEvent *e); + void mouseMoveEvent ( TQMouseEvent *e); // properties of the stone picture int stone_width,stone_height; // size of one stone |