summaryrefslogtreecommitdiffstats
path: root/kreversi/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'kreversi/board.h')
-rw-r--r--kreversi/board.h30
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.