summaryrefslogtreecommitdiffstats
path: root/kspaceduel/topwidget.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
commit838baf3f99ec5ab81b063eb5449a3381d860f377 (patch)
treedd31abcfde08ca92e4623b8f50b3d762a87c997a /kspaceduel/topwidget.cpp
parent2bf598bafa22fac4126fc8842df6b0119aadc0e9 (diff)
downloadtdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.tar.gz
tdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.zip
TQt4 port kdegames
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1236074 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kspaceduel/topwidget.cpp')
-rw-r--r--kspaceduel/topwidget.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kspaceduel/topwidget.cpp b/kspaceduel/topwidget.cpp
index 510da675..999f546b 100644
--- a/kspaceduel/topwidget.cpp
+++ b/kspaceduel/topwidget.cpp
@@ -25,21 +25,21 @@ void MyTopLevelWidget::initGameWidgets( ){
playerinfo[1]=new PlayerInfo(1,w);
playfield=new MyMainView(w);
- TQBoxLayout *toplayout=new TQHBoxLayout(w);
- toplayout->addWidget(playerinfo[0]);
- toplayout->addWidget(playfield);
- toplayout->addWidget(playerinfo[1]);
- toplayout->activate();
+ TQBoxLayout *toptqlayout=new TQHBoxLayout(w);
+ toptqlayout->addWidget(playerinfo[0]);
+ toptqlayout->addWidget(playfield);
+ toptqlayout->addWidget(playerinfo[1]);
+ toptqlayout->activate();
- playfield->setFocusPolicy(TQWidget::StrongFocus);
+ playfield->setFocusPolicy(TQ_StrongFocus);
playfield->setFocus();
- TQObject::connect(playfield,TQT_SIGNAL(energy(int,int)),
+ TQT_BASE_OBJECT_NAME::connect(TQT_TQOBJECT(playfield),TQT_SIGNAL(energy(int,int)),
TQT_SLOT(energy(int,int)));
- TQObject::connect(playfield,TQT_SIGNAL(hitPoints(int,int)),
+ TQT_BASE_OBJECT_NAME::connect(TQT_TQOBJECT(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_BASE_OBJECT_NAME::connect(TQT_TQOBJECT(playfield),TQT_SIGNAL(wins(int,int)),TQT_SLOT(wins(int,int)));
+ TQT_BASE_OBJECT_NAME::connect(TQT_TQOBJECT(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, TQT_SLOT(close()), actionCollection());
- KStdGameAction::gameNew(playfield, TQT_SLOT(newGame()), actionCollection());
+ KStdGameAction::quit(TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection());
+ KStdGameAction::gameNew(TQT_TQOBJECT(playfield), TQT_SLOT(newGame()), actionCollection());
( void )new KAction( i18n( "&New Round" ), "spnewround",
- CTRL + Key_R, playfield, TQT_SLOT( newRound( ) ),
+ CTRL + Key_R, TQT_TQOBJECT(playfield), TQT_SLOT( newRound( ) ),
actionCollection( ), "new_round" );
MyMainView::pauseAction =
- KStdGameAction::pause(playfield, TQT_SLOT(togglePause()), actionCollection());
+ KStdGameAction::pause(TQT_TQOBJECT(playfield), TQT_SLOT(togglePause()), actionCollection());
MyMainView::pauseAction->setChecked( false );
KAction* gameStart = new KAction( i18n( "Start" ), GAME_START_SHORTCUT,
- playfield, TQT_SLOT( start( ) ), actionCollection( ), "game_start" );
+ TQT_TQOBJECT(playfield), TQT_SLOT( start( ) ), actionCollection( ), "game_start" );
- KStdAction::preferences(playfield, TQT_SLOT(gameSetup()), actionCollection());
+ KStdAction::preferences(TQT_TQOBJECT(playfield), TQT_SLOT(gameSetup()), actionCollection());
KAccel* acc = new KAccel(this);
gameStart->plugAccel(acc);