summaryrefslogtreecommitdiffstats
path: root/kspaceduel/topwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kspaceduel/topwidget.cpp')
-rw-r--r--kspaceduel/topwidget.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kspaceduel/topwidget.cpp b/kspaceduel/topwidget.cpp
index 9f275848..510da675 100644
--- a/kspaceduel/topwidget.cpp
+++ b/kspaceduel/topwidget.cpp
@@ -3,7 +3,7 @@
#include <kkeydialog.h>
#include <kaction.h>
#include <kstdgameaction.h>
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kstatusbar.h>
#include "topwidget.h"
@@ -19,28 +19,28 @@ MyTopLevelWidget::MyTopLevelWidget()
}
void MyTopLevelWidget::initGameWidgets( ){
- QWidget *w = new QWidget(this);
+ TQWidget *w = new TQWidget(this);
playerinfo[0]=new PlayerInfo(0,w);
playerinfo[1]=new PlayerInfo(1,w);
playfield=new MyMainView(w);
- QBoxLayout *toplayout=new QHBoxLayout(w);
+ TQBoxLayout *toplayout=new TQHBoxLayout(w);
toplayout->addWidget(playerinfo[0]);
toplayout->addWidget(playfield);
toplayout->addWidget(playerinfo[1]);
toplayout->activate();
- playfield->setFocusPolicy(QWidget::StrongFocus);
+ playfield->setFocusPolicy(TQWidget::StrongFocus);
playfield->setFocus();
- QObject::connect(playfield,SIGNAL(energy(int,int)),
- SLOT(energy(int,int)));
- QObject::connect(playfield,SIGNAL(hitPoints(int,int)),
- SLOT(hitPoints(int,int)));
- QObject::connect(playfield,SIGNAL(wins(int,int)),SLOT(wins(int,int)));
- QObject::connect(playfield,SIGNAL(setStatusText(const QString &,int)),
- SLOT(setStatusText(const QString &,int)));
+ TQObject::connect(playfield,TQT_SIGNAL(energy(int,int)),
+ TQT_SLOT(energy(int,int)));
+ TQObject::connect(playfield,TQT_SIGNAL(hitPoints(int,int)),
+ TQT_SLOT(hitPoints(int,int)));
+ TQObject::connect(playfield,TQT_SIGNAL(wins(int,int)),TQT_SLOT(wins(int,int)));
+ TQObject::connect(playfield,TQT_SIGNAL(setStatusText(const TQString &,int)),
+ TQT_SLOT(setStatusText(const TQString &,int)));
setCentralWidget(w);
}
@@ -62,18 +62,18 @@ void MyTopLevelWidget::wins(int pn,int w)
void MyTopLevelWidget::initActions( )
{
- KStdGameAction::quit(this, SLOT(close()), actionCollection());
- KStdGameAction::gameNew(playfield, SLOT(newGame()), actionCollection());
+ KStdGameAction::quit(this, TQT_SLOT(close()), actionCollection());
+ KStdGameAction::gameNew(playfield, TQT_SLOT(newGame()), actionCollection());
( void )new KAction( i18n( "&New Round" ), "spnewround",
- CTRL + Key_R, playfield, SLOT( newRound( ) ),
+ CTRL + Key_R, playfield, TQT_SLOT( newRound( ) ),
actionCollection( ), "new_round" );
MyMainView::pauseAction =
- KStdGameAction::pause(playfield, SLOT(togglePause()), actionCollection());
+ KStdGameAction::pause(playfield, TQT_SLOT(togglePause()), actionCollection());
MyMainView::pauseAction->setChecked( false );
KAction* gameStart = new KAction( i18n( "Start" ), GAME_START_SHORTCUT,
- playfield, SLOT( start( ) ), actionCollection( ), "game_start" );
+ playfield, TQT_SLOT( start( ) ), actionCollection( ), "game_start" );
- KStdAction::preferences(playfield, SLOT(gameSetup()), actionCollection());
+ KStdAction::preferences(playfield, TQT_SLOT(gameSetup()), actionCollection());
KAccel* acc = new KAccel(this);
gameStart->plugAccel(acc);
@@ -130,7 +130,7 @@ void MyTopLevelWidget::start()
playfield->newRound();
}
-void MyTopLevelWidget::setStatusText(const QString & str,int id)
+void MyTopLevelWidget::setStatusText(const TQString & str,int id)
{
statusBar( )->changeItem(str,id);
}