diff options
author | Michele Calgaro <[email protected]> | 2024-01-13 12:28:49 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-01-13 12:28:49 +0900 |
commit | c20f4d8f2cf03c69fcecc80d63fe3cbb80f51610 (patch) | |
tree | 50b08262da538c5b91f77e83e4b80d7fd6dbe0de /kspaceduel | |
parent | 51f65427771c47f6d34cda56b07d9d82bd0bfd33 (diff) | |
download | tdegames-c20f4d8f2cf03c69fcecc80d63fe3cbb80f51610.tar.gz tdegames-c20f4d8f2cf03c69fcecc80d63fe3cbb80f51610.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kspaceduel')
-rw-r--r-- | kspaceduel/dialogs.cpp | 6 | ||||
-rw-r--r-- | kspaceduel/mainview.cpp | 2 | ||||
-rw-r--r-- | kspaceduel/topwidget.cpp | 26 |
3 files changed, 17 insertions, 17 deletions
diff --git a/kspaceduel/dialogs.cpp b/kspaceduel/dialogs.cpp index 90359f4f..396d7dfe 100644 --- a/kspaceduel/dialogs.cpp +++ b/kspaceduel/dialogs.cpp @@ -146,13 +146,13 @@ ConfigSetup::ConfigSetup(SConfig *custom,TQWidget *parent,const char *name) (EditVal[i][1]-EditVal[i][0])/10, EditVal[i][2]*EditDiv[i], TQt::Horizontal,configWidgets[Parent[i]]); - connect(slider[i],TQT_SIGNAL(valueChanged(int)),TQT_SLOT(sliderChanged(int))); + connect(slider[i],TQ_SIGNAL(valueChanged(int)),TQ_SLOT(sliderChanged(int))); value[i]=new TQLCDNumber(LCDLen,configWidgets[Parent[i]]); value[i]->setFrameStyle(TQFrame::NoFrame); } configCombo=new TQComboBox(false,this); - connect(configCombo,TQT_SIGNAL(activated(int)),TQT_SLOT(configSelected(int))); + connect(configCombo,TQ_SIGNAL(activated(int)),TQ_SLOT(configSelected(int))); for(i=0;i<predefinedConfigNum;i++) configCombo->insertItem(i18n(predefinedConfigName[i])); configCombo->insertItem(i18n("Custom")); @@ -396,7 +396,7 @@ SettingsDialog::SettingsDialog(SConfig *customConfig, TQWidget *parent, const ch cs = new ConfigSetup(customConfig); addPage(cs, i18n("Game"), "kspaceduel", i18n("Game Settings")); - connect(cs, TQT_SIGNAL(changed()), this, TQT_SLOT(updateButtons())); + connect(cs, TQ_SIGNAL(changed()), this, TQ_SLOT(updateButtons())); // resize(600,400); } diff --git a/kspaceduel/mainview.cpp b/kspaceduel/mainview.cpp index 9fabcf3c..5cbb1011 100644 --- a/kspaceduel/mainview.cpp +++ b/kspaceduel/mainview.cpp @@ -990,7 +990,7 @@ void MyMainView::gameSetup() return; SettingsDialog *settings=new SettingsDialog(&customConfig,this,"settings"); - connect(settings, TQT_SIGNAL(settingsUpdated()),this,TQT_SLOT(closeSettings())); + connect(settings, TQ_SIGNAL(settingsUpdated()),this,TQ_SLOT(closeSettings())); settings->show(); } diff --git a/kspaceduel/topwidget.cpp b/kspaceduel/topwidget.cpp index ce727607..a8a3b5ab 100644 --- a/kspaceduel/topwidget.cpp +++ b/kspaceduel/topwidget.cpp @@ -34,13 +34,13 @@ void MyTopLevelWidget::initGameWidgets( ){ playfield->setFocusPolicy(TQWidget::StrongFocus); playfield->setFocus(); - 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))); + TQObject::connect(playfield,TQ_SIGNAL(energy(int,int)), + TQ_SLOT(energy(int,int))); + TQObject::connect(playfield,TQ_SIGNAL(hitPoints(int,int)), + TQ_SLOT(hitPoints(int,int))); + TQObject::connect(playfield,TQ_SIGNAL(wins(int,int)),TQ_SLOT(wins(int,int))); + TQObject::connect(playfield,TQ_SIGNAL(setStatusText(const TQString &,int)), + TQ_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(this, TQ_SLOT(close()), actionCollection()); + KStdGameAction::gameNew(playfield, TQ_SLOT(newGame()), actionCollection()); ( void )new TDEAction( i18n( "&New Round" ), "spnewround", - CTRL + Key_R, playfield, TQT_SLOT( newRound( ) ), + CTRL + Key_R, playfield, TQ_SLOT( newRound( ) ), actionCollection( ), "new_round" ); MyMainView::pauseAction = - KStdGameAction::pause(playfield, TQT_SLOT(togglePause()), actionCollection()); + KStdGameAction::pause(playfield, TQ_SLOT(togglePause()), actionCollection()); MyMainView::pauseAction->setChecked( false ); TDEAction* gameStart = new TDEAction( i18n( "Start" ), GAME_START_SHORTCUT, - playfield, TQT_SLOT( start( ) ), actionCollection( ), "game_start" ); + playfield, TQ_SLOT( start( ) ), actionCollection( ), "game_start" ); - KStdAction::preferences(playfield, TQT_SLOT(gameSetup()), actionCollection()); + KStdAction::preferences(playfield, TQ_SLOT(gameSetup()), actionCollection()); TDEAccel* acc = new TDEAccel(this); gameStart->plugAccel(acc); |