summaryrefslogtreecommitdiffstats
path: root/kjumpingcube
diff options
context:
space:
mode:
Diffstat (limited to 'kjumpingcube')
-rw-r--r--kjumpingcube/kcubeboxwidget.cpp16
-rw-r--r--kjumpingcube/kcubeboxwidget.h2
-rw-r--r--kjumpingcube/kcubewidget.cpp4
-rw-r--r--kjumpingcube/kcubewidget.h2
-rw-r--r--kjumpingcube/kjumpingcube.cpp32
-rw-r--r--kjumpingcube/kjumpingcube.h2
6 files changed, 29 insertions, 29 deletions
diff --git a/kjumpingcube/kcubeboxwidget.cpp b/kjumpingcube/kcubeboxwidget.cpp
index 9b589b96..3a03ad4b 100644
--- a/kjumpingcube/kcubeboxwidget.cpp
+++ b/kjumpingcube/kcubeboxwidget.cpp
@@ -435,12 +435,12 @@ void KCubeBoxWidget::init()
KCubeWidget::enableClicks(true);
loadSettings();
- 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()));
+ connect(moveTimer,TQ_SIGNAL(timeout()),TQ_SLOT(nextLoopStep()));
+ connect(this,TQ_SIGNAL(startedThinking()),TQ_SLOT(setWaitCursor()));
+ connect(this,TQ_SIGNAL(stoppedThinking()),TQ_SLOT(setNormalCursor()));
+ connect(this,TQ_SIGNAL(startedMoving()),TQ_SLOT(setWaitCursor()));
+ connect(this,TQ_SIGNAL(stoppedMoving()),TQ_SLOT(setNormalCursor()));
+ connect(this,TQ_SIGNAL(playerWon(int)),TQ_SLOT(stopActivities()));
setNormalCursor();
@@ -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],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)));
+ connect(cubes[i][j],TQ_SIGNAL(clicked(int,int,bool)),TQ_SLOT(stopHint()));
+ connect(cubes[i][j],TQ_SIGNAL(clicked(int,int,bool)),TQ_SLOT(checkClick(int,int,bool)));
}
// initialize cubes
diff --git a/kjumpingcube/kcubeboxwidget.h b/kjumpingcube/kcubeboxwidget.h
index aea02ead..02060eaf 100644
--- a/kjumpingcube/kcubeboxwidget.h
+++ b/kjumpingcube/kcubeboxwidget.h
@@ -50,7 +50,7 @@ struct Loop
class KCubeBoxWidget : public TQWidget , public CubeBoxBase<KCubeWidget>
{
- Q_OBJECT
+ TQ_OBJECT
public:
KCubeBoxWidget(const int dim=1,TQWidget *parent=0,const char *name=0);
diff --git a/kjumpingcube/kcubewidget.cpp b/kjumpingcube/kcubewidget.cpp
index b98ca82e..d832d21e 100644
--- a/kjumpingcube/kcubewidget.cpp
+++ b/kjumpingcube/kcubewidget.cpp
@@ -88,7 +88,7 @@ KCubeWidget::KCubeWidget(TQWidget* parent,const char* name
// will be automatically destroyed by the parent
hintTimer = new TQTimer(this);
hintCounter=0;
- connect(hintTimer,TQT_SIGNAL(timeout()),TQT_SLOT(hint()));
+ connect(hintTimer,TQ_SIGNAL(timeout()),TQ_SLOT(hint()));
setPalette(kapp->palette());
@@ -240,7 +240,7 @@ void KCubeWidget::mouseReleaseEvent(TQMouseEvent *e)
if(e->x()< 0 || e->x() > width() || e->y() < 0 || e->y() > height())
return;
- if(e->button() == Qt::LeftButton && _clicksAllowed)
+ if(e->button() == TQt::LeftButton && _clicksAllowed)
{
stopHint();
emit clicked(row(),column(),true);
diff --git a/kjumpingcube/kcubewidget.h b/kjumpingcube/kcubewidget.h
index f0dc7146..8a6114f4 100644
--- a/kjumpingcube/kcubewidget.h
+++ b/kjumpingcube/kcubewidget.h
@@ -34,7 +34,7 @@ class TQTimer;
*/
class KCubeWidget : public TQFrame , public Cube
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/kjumpingcube/kjumpingcube.cpp b/kjumpingcube/kjumpingcube.cpp
index 6981b449..dc5ba705 100644
--- a/kjumpingcube/kjumpingcube.cpp
+++ b/kjumpingcube/kjumpingcube.cpp
@@ -49,12 +49,12 @@
KJumpingCube::KJumpingCube()
: view(new KCubeBoxWidget(5, this, "KCubeBoxWidget"))
{
- connect(view,TQT_SIGNAL(playerChanged(int)),TQT_SLOT(changePlayer(int)));
- connect(view,TQT_SIGNAL(stoppedMoving()),TQT_SLOT(disableStop()));
- connect(view,TQT_SIGNAL(stoppedThinking()),TQT_SLOT(disableStop()));
- connect(view,TQT_SIGNAL(startedMoving()),TQT_SLOT(enableStop_Moving()));
- connect(view,TQT_SIGNAL(startedThinking()),TQT_SLOT(enableStop_Thinking()));
- connect(view,TQT_SIGNAL(playerWon(int)),TQT_SLOT(showWinner(int)));
+ connect(view,TQ_SIGNAL(playerChanged(int)),TQ_SLOT(changePlayer(int)));
+ connect(view,TQ_SIGNAL(stoppedMoving()),TQ_SLOT(disableStop()));
+ connect(view,TQ_SIGNAL(stoppedThinking()),TQ_SLOT(disableStop()));
+ connect(view,TQ_SIGNAL(startedMoving()),TQ_SLOT(enableStop_Moving()));
+ connect(view,TQ_SIGNAL(startedThinking()),TQ_SLOT(enableStop_Thinking()));
+ connect(view,TQ_SIGNAL(playerWon(int)),TQ_SLOT(showWinner(int)));
// tell the TDEMainWindow that this is indeed the main widget
setCentralWidget(view);
@@ -76,19 +76,19 @@ KJumpingCube::KJumpingCube()
}
void KJumpingCube::initTDEAction() {
- KStdGameAction::gameNew(TQT_TQOBJECT(this), TQT_SLOT(newGame()), actionCollection());
- KStdGameAction::load(TQT_TQOBJECT(this), TQT_SLOT(openGame()), actionCollection());
- KStdGameAction::save(TQT_TQOBJECT(this), TQT_SLOT(save()), actionCollection());
- KStdGameAction::saveAs(TQT_TQOBJECT(this), TQT_SLOT(saveAs()), actionCollection());
- KStdGameAction::quit(TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection());
+ KStdGameAction::gameNew(this, TQ_SLOT(newGame()), actionCollection());
+ KStdGameAction::load(this, TQ_SLOT(openGame()), actionCollection());
+ KStdGameAction::save(this, TQ_SLOT(save()), actionCollection());
+ KStdGameAction::saveAs(this, TQ_SLOT(saveAs()), actionCollection());
+ KStdGameAction::quit(this, TQ_SLOT(close()), actionCollection());
- hintAction = KStdGameAction::hint(TQT_TQOBJECT(view), TQT_SLOT(getHint()), actionCollection());
+ hintAction = KStdGameAction::hint(view, TQ_SLOT(getHint()), actionCollection());
stopAction = new TDEAction(i18n("Stop &Thinking"), "process-stop",
- TQt::Key_Escape, TQT_TQOBJECT(this), TQT_SLOT(stop()), actionCollection(), "game_stop");
+ TQt::Key_Escape, this, TQ_SLOT(stop()), actionCollection(), "game_stop");
stopAction->setEnabled(false);
- undoAction = KStdGameAction::undo(TQT_TQOBJECT(this), TQT_SLOT(undo()), actionCollection());
+ undoAction = KStdGameAction::undo(this, TQ_SLOT(undo()), actionCollection());
undoAction->setEnabled(false);
- KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(showOptions()), actionCollection());
+ KStdAction::preferences(this, TQ_SLOT(showOptions()), actionCollection());
setupGUI();
}
@@ -270,7 +270,7 @@ void KJumpingCube::showOptions(){
TDEConfigDialog *dialog = new TDEConfigDialog(this, "settings", Prefs::self(), KDialogBase::Swallow);
dialog->addPage(new Settings(0, "General"), i18n("General"), "package_settings");
- connect(dialog, TQT_SIGNAL(settingsChanged()), view, TQT_SLOT(loadSettings()));
+ connect(dialog, TQ_SIGNAL(settingsChanged()), view, TQ_SLOT(loadSettings()));
dialog->show();
}
diff --git a/kjumpingcube/kjumpingcube.h b/kjumpingcube/kjumpingcube.h
index 09930b05..dd46daa6 100644
--- a/kjumpingcube/kjumpingcube.h
+++ b/kjumpingcube/kjumpingcube.h
@@ -41,7 +41,7 @@ class KCubeBoxWidget;
* @version 0.7.2
*/
class KJumpingCube : public TDEMainWindow {
- Q_OBJECT
+ TQ_OBJECT
public: