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 /kreversi/board.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 'kreversi/board.h')
-rw-r--r-- | kreversi/board.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kreversi/board.h b/kreversi/board.h index 4f9d1603..f5efc739 100644 --- a/kreversi/board.h +++ b/kreversi/board.h @@ -39,8 +39,8 @@ #ifndef __BOARD__H__ #define __BOARD__H__ -#include <qwidget.h> -#include <qpixmap.h> +#include <tqwidget.h> +#include <tqpixmap.h> #include "Position.h" //#include "Game.h" @@ -54,12 +54,12 @@ class QReversiGame; // The class Board is the visible Reversi Board widget. // -class QReversiBoardView : public QWidget { +class QReversiBoardView : public TQWidget { Q_OBJECT public: - QReversiBoardView(QWidget *parent, QReversiGame *game); + QReversiBoardView(TQWidget *parent, QReversiGame *game); ~QReversiBoardView(); // starts all: emits some signal, so it can't be called from @@ -86,7 +86,7 @@ public: void loadSettings(); // To get the pixmap for the status view - QPixmap chipPixmap(Color color, uint size) const; + TQPixmap chipPixmap(Color color, uint size) const; signals: @@ -96,8 +96,8 @@ signals: protected: // event stuff - void paintEvent(QPaintEvent *); - void mousePressEvent(QMouseEvent *); + void paintEvent(TQPaintEvent *); + void mousePressEvent(TQMouseEvent *); private: @@ -108,31 +108,31 @@ private: void rotateChip(uint row, uint col); bool isField(int row, int col) const; - void setColor(const QColor &); - QColor color() const { return bgColor; } - void setPixmap(QPixmap &); + void setColor(const TQColor &); + TQColor color() const { return bgColor; } + void setPixmap(TQPixmap &); // Methods for handling images of pieces. enum ChipType { Unloaded, Colored, Grayscale }; void loadChips(ChipType); ChipType chipType() const { return chiptype; } - QPixmap chipPixmap(uint i, uint size) const; + TQPixmap chipPixmap(uint i, uint size) const; // Private drawing methods. void showLegalMoves(); - void drawSmallCircle(int x, int y, QPainter &p); + void drawSmallCircle(int x, int y, TQPainter &p); private: QReversiGame *m_krgame; // Pointer to the game object (not owner). // The background of the board - a color and a pixmap. - QColor bgColor; - QPixmap bg; + TQColor bgColor; + TQPixmap bg; // the pieces ChipType chiptype; - QPixmap allchips; + TQPixmap allchips; uint anim_speed; // Special stuff used only in smaller areas. |