summaryrefslogtreecommitdiffstats
path: root/kmahjongg/boardwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'kmahjongg/boardwidget.h')
-rw-r--r--kmahjongg/boardwidget.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/kmahjongg/boardwidget.h b/kmahjongg/boardwidget.h
index 4c042c38..3fe7c3b7 100644
--- a/kmahjongg/boardwidget.h
+++ b/kmahjongg/boardwidget.h
@@ -1,8 +1,8 @@
#ifndef BOARDWIDGET_H
#define BOARDWIDGET_H
-#include <qwidget.h>
-#include <qevent.h>
+#include <tqwidget.h>
+#include <tqevent.h>
#include <krandomsequence.h>
@@ -91,7 +91,7 @@ class BoardWidget : public QWidget
Q_OBJECT
public:
- BoardWidget( QWidget* parent = 0, const char *name = 0 );
+ BoardWidget( TQWidget* parent = 0, const char *name = 0 );
~BoardWidget();
void calculateNewGame(int num = -1 );
@@ -107,8 +107,8 @@ class BoardWidget : public QWidget
void setShowMatch( bool );
void tileSizeChanged();
long getGameNum() {return gameGenerationNum;}
- QString &getBoardName(){return theBoardLayout.getFilename();}
- QString &getLayoutName() {return theBoardLayout.getFilename();}
+ TQString &getBoardName(){return theBoardLayout.getFilename();}
+ TQString &getLayoutName() {return theBoardLayout.getFilename();}
public slots:
@@ -122,14 +122,14 @@ class BoardWidget : public QWidget
void demoMoveTimeout();
void matchAnimationTimeout();
void setDisplayedWidth();
- bool loadTileset ( const QString & );
- bool loadBoardLayout( const QString& );
+ bool loadTileset ( const TQString & );
+ bool loadBoardLayout( const TQString& );
bool loadBoard ( );
void updateScaleMode ();
void drawBoard(bool deferUpdate = true);
- bool loadBackground ( const QString&, bool bShowError = true );
+ bool loadBackground ( const TQString&, bool bShowError = true );
signals:
- void statusTextChanged ( const QString&, long );
+ void statusTextChanged ( const TQString&, long );
void tileNumberChanged ( int iMaximum, int iCurrent, int iLeft );
void demoModeChanged ( bool bActive );
@@ -137,14 +137,14 @@ class BoardWidget : public QWidget
void gameOver(unsigned short removed, unsigned short cheats);
protected:
- void getFileOrDefault(QString filename, QString type, QString &res);
- void shadowArea(int z, int y, int x, int sx, int sy, int rx, int ry, QPixmap *src);
- void shadowTopLeft(int depth, int sx, int sy, int rx, int ry,QPixmap *src, bool flag);
- void shadowBotRight(int depth, int sx, int sy, int rx, int ry,QPixmap *src, bool flag);
- void paintEvent ( QPaintEvent* );
- void mousePressEvent ( QMouseEvent* );
-
- void setStatusText ( const QString& );
+ void getFileOrDefault(TQString filename, TQString type, TQString &res);
+ void shadowArea(int z, int y, int x, int sx, int sy, int rx, int ry, TQPixmap *src);
+ void shadowTopLeft(int depth, int sx, int sy, int rx, int ry,TQPixmap *src, bool flag);
+ void shadowBotRight(int depth, int sx, int sy, int rx, int ry,TQPixmap *src, bool flag);
+ void paintEvent ( TQPaintEvent* );
+ void mousePressEvent ( TQMouseEvent* );
+
+ void setStatusText ( const TQString& );
void cancelUserSelectedTiles();
void drawTileNumber();
@@ -153,7 +153,7 @@ class BoardWidget : public QWidget
void removeTile ( POSITION& , bool refresh = true);
void setRemovedTilePair(POSITION &a, POSITION &b);
void clearRemovedTilePair(POSITION &a, POSITION &b);
- void transformPointToPosition( const QPoint&, POSITION& );
+ void transformPointToPosition( const TQPoint&, POSITION& );
bool isMatchingTile( POSITION&, POSITION& );
bool generateStartPosition2();
@@ -197,10 +197,10 @@ class BoardWidget : public QWidget
bool showMatch;
bool showHelp;
- QTimer *timer;
+ TQTimer *timer;
// offscreen draw area.
- QPixmap backBuffer; // pixmap to render to
+ TQPixmap backBuffer; // pixmap to render to