summaryrefslogtreecommitdiffstats
path: root/kjumpingcube/kcubeboxwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kjumpingcube/kcubeboxwidget.cpp')
-rw-r--r--kjumpingcube/kcubeboxwidget.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/kjumpingcube/kcubeboxwidget.cpp b/kjumpingcube/kcubeboxwidget.cpp
index 98f305d9..bca13210 100644
--- a/kjumpingcube/kcubeboxwidget.cpp
+++ b/kjumpingcube/kcubeboxwidget.cpp
@@ -23,15 +23,15 @@
#include <kapplication.h>
#include <kconfig.h>
-#include <qlayout.h>
-#include <qtimer.h>
+#include <tqlayout.h>
+#include <tqtimer.h>
#include <assert.h>
#include <kcursor.h>
#include "prefs.h"
-KCubeBoxWidget::KCubeBoxWidget(const int d,QWidget *parent,const char *name)
- : QWidget(parent,name),
+KCubeBoxWidget::KCubeBoxWidget(const int d,TQWidget *parent,const char *name)
+ : TQWidget(parent,name),
CubeBoxBase<KCubeWidget>(d)
{
init();
@@ -39,8 +39,8 @@ KCubeBoxWidget::KCubeBoxWidget(const int d,QWidget *parent,const char *name)
-KCubeBoxWidget::KCubeBoxWidget(CubeBox& box,QWidget *parent,const char *name)
- :QWidget(parent,name),
+KCubeBoxWidget::KCubeBoxWidget(CubeBox& box,TQWidget *parent,const char *name)
+ :TQWidget(parent,name),
CubeBoxBase<KCubeWidget>(box.dim())
{
init();
@@ -57,8 +57,8 @@ KCubeBoxWidget::KCubeBoxWidget(CubeBox& box,QWidget *parent,const char *name)
-KCubeBoxWidget::KCubeBoxWidget(const KCubeBoxWidget& box,QWidget *parent,const char *name)
- :QWidget(parent,name),
+KCubeBoxWidget::KCubeBoxWidget(const KCubeBoxWidget& box,TQWidget *parent,const char *name)
+ :TQWidget(parent,name),
CubeBoxBase<KCubeWidget>(box.dim())
{
init();
@@ -198,7 +198,7 @@ void KCubeBoxWidget::getHint()
cubes[row][column]->showHint();
}
-void KCubeBoxWidget::setColor(Player player,QPalette color)
+void KCubeBoxWidget::setColor(Player player,TQPalette color)
{
KCubeWidget::setColor((Cube::Owner)player,color);
@@ -255,9 +255,9 @@ void KCubeBoxWidget::saveProperties(KConfigBase* config)
// save current player
config->writeEntry("onTurn",(int)currentPlayer);
- QStrList list;
+ TQStrList list;
list.setAutoDelete(true);
- QString owner, value, key;
+ TQString owner, value, key;
int cubeDim=dim();
for(int row=0; row < cubeDim ; row++)
@@ -277,9 +277,9 @@ void KCubeBoxWidget::saveProperties(KConfigBase* config)
void KCubeBoxWidget::readProperties(KConfigBase* config)
{
- QStrList list;
+ TQStrList list;
list.setAutoDelete(true);
- QString owner, value, key;
+ TQString owner, value, key;
setDim(config->readNumEntry("CubeDim",5));
int cubeDim=dim();
@@ -413,7 +413,7 @@ int KCubeBoxWidget::skill() const
return brain.skill();
}
-QPalette KCubeBoxWidget::color(Player forWhom)
+TQPalette KCubeBoxWidget::color(Player forWhom)
{
return KCubeWidget::color((KCubeWidget::Owner)forWhom);
}
@@ -429,18 +429,18 @@ void KCubeBoxWidget::init()
currentPlayer=One;
moveDelay=100;
- moveTimer=new QTimer(this);
+ moveTimer=new TQTimer(this);
computerPlOne=false;
computerPlTwo=false;
KCubeWidget::enableClicks(true);
loadSettings();
- connect(moveTimer,SIGNAL(timeout()),SLOT(nextLoopStep()));
- connect(this,SIGNAL(startedThinking()),SLOT(setWaitCursor()));
- connect(this,SIGNAL(stoppedThinking()),SLOT(setNormalCursor()));
- connect(this,SIGNAL(startedMoving()),SLOT(setWaitCursor()));
- connect(this,SIGNAL(stoppedMoving()),SLOT(setNormalCursor()));
- connect(this,SIGNAL(playerWon(int)),SLOT(stopActivities()));
+ connect(moveTimer,TQT_SIGNAL(timeout()),TQT_SLOT(nextLoopStep()));
+ connect(this,TQT_SIGNAL(startedThinking()),TQT_SLOT(setWaitCursor()));
+ connect(this,TQT_SIGNAL(stoppedThinking()),TQT_SLOT(setNormalCursor()));
+ connect(this,TQT_SIGNAL(startedMoving()),TQT_SLOT(setWaitCursor()));
+ connect(this,TQT_SIGNAL(stoppedMoving()),TQT_SLOT(setNormalCursor()));
+ connect(this,TQT_SIGNAL(playerWon(int)),TQT_SLOT(stopActivities()));
setNormalCursor();
@@ -453,7 +453,7 @@ void KCubeBoxWidget::initCubes()
int i,j;
// create Layout
- layout=new QGridLayout(this,s,s);
+ layout=new TQGridLayout(this,s,s);
for(i=0;i<s;i++)
@@ -476,8 +476,8 @@ void KCubeBoxWidget::initCubes()
cubes[i][j]->setCoordinates(i,j);
layout->addWidget(cubes[i][j],i,j);
cubes[i][j]->show();
- connect(cubes[i][j],SIGNAL(clicked(int,int,bool)),SLOT(stopHint()));
- connect(cubes[i][j],SIGNAL(clicked(int,int,bool)),SLOT(checkClick(int,int,bool)));
+ connect(cubes[i][j],TQT_SIGNAL(clicked(int,int,bool)),TQT_SLOT(stopHint()));
+ connect(cubes[i][j],TQT_SIGNAL(clicked(int,int,bool)),TQT_SLOT(checkClick(int,int,bool)));
}
// initialize cubes
@@ -504,9 +504,9 @@ void KCubeBoxWidget::initCubes()
}
-QSize KCubeBoxWidget::sizeHint() const
+TQSize KCubeBoxWidget::sizeHint() const
{
- return QSize(400,400);
+ return TQSize(400,400);
}
void KCubeBoxWidget::deleteCubes()