summaryrefslogtreecommitdiffstats
path: root/kenolaba
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-20 22:30:18 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-20 22:39:59 +0900
commit7909152750670148360093b2519955fbfa555154 (patch)
tree86544c17c877637743df75e42369e8114c38abf3 /kenolaba
parent2d872f6fb68350f9ee5b0b5c86ab3240b0d09aae (diff)
downloadtdegames-7909152750670148360093b2519955fbfa555154.tar.gz
tdegames-7909152750670148360093b2519955fbfa555154.zip
Replace various '#define' strings - part 6
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kenolaba')
-rw-r--r--kenolaba/AbTop.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/kenolaba/AbTop.cpp b/kenolaba/AbTop.cpp
index 51a54532..891128b2 100644
--- a/kenolaba/AbTop.cpp
+++ b/kenolaba/AbTop.cpp
@@ -63,12 +63,12 @@ AbTop::AbTop()
timer = new TQTimer;
- connect( timer, TQT_SIGNAL(timeout()), TQT_TQOBJECT(this), TQT_SLOT(timerDone()) );
+ connect( timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(timerDone()) );
board = new Board();
setMoveNo(0);
- connect( board, TQT_SIGNAL(searchBreak()), TQT_TQOBJECT(this), TQT_SLOT(searchBreak()) );
+ connect( board, TQT_SIGNAL(searchBreak()), this, TQT_SLOT(searchBreak()) );
TQ_CHECK_PTR(board);
boardWidget = new BoardWidget(*board,this);
@@ -77,7 +77,7 @@ AbTop::AbTop()
#endif
connect( boardWidget, TQT_SIGNAL(updateSpy(TQString)),
- TQT_TQOBJECT(this), TQT_SLOT(updateSpy(TQString)) );
+ this, TQT_SLOT(updateSpy(TQString)) );
setCentralWidget(boardWidget);
boardWidget->show();
@@ -89,16 +89,16 @@ AbTop::AbTop()
// RMB context menu
connect( boardWidget, TQT_SIGNAL(rightButtonPressed(int,const TQPoint&)),
- TQT_TQOBJECT(this), TQT_SLOT(rightButtonPressed(int,const TQPoint&)) );
+ this, TQT_SLOT(rightButtonPressed(int,const TQPoint&)) );
connect( boardWidget, TQT_SIGNAL(edited(int)),
- TQT_TQOBJECT(this), TQT_SLOT(edited(int)) );
+ this, TQT_SLOT(edited(int)) );
connect( board, TQT_SIGNAL(updateBestMove(Move&,int)),
- TQT_TQOBJECT(this), TQT_SLOT(updateBestMove(Move&,int)) );
+ this, TQT_SLOT(updateBestMove(Move&,int)) );
connect( boardWidget, TQT_SIGNAL(moveChoosen(Move&)),
- TQT_TQOBJECT(this), TQT_SLOT(moveChoosen(Move&)) );
+ this, TQT_SLOT(moveChoosen(Move&)) );
/* default */
setLevel(Easy);
@@ -132,61 +132,61 @@ AbTop::~AbTop()
void AbTop::setupActions()
{
- newAction = KStdGameAction::gameNew( TQT_TQOBJECT(this), TQT_SLOT(newGame()), actionCollection() );
- KStdGameAction::quit( TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection() );
+ newAction = KStdGameAction::gameNew( this, TQT_SLOT(newGame()), actionCollection() );
+ KStdGameAction::quit( this, TQT_SLOT(close()), actionCollection() );
- stopAction = new TDEAction( i18n("&Stop Search"), "process-stop", Key_S, TQT_TQOBJECT(this),
+ stopAction = new TDEAction( i18n("&Stop Search"), "process-stop", Key_S, this,
TQT_SLOT(stopSearch()), actionCollection(), "move_stop");
backAction = new TDEAction( i18n("Take &Back"), "back",
- TDEStdAccel::shortcut(TDEStdAccel::Prior), TQT_TQOBJECT(this),
+ TDEStdAccel::shortcut(TDEStdAccel::Prior), this,
TQT_SLOT(back()), actionCollection(), "move_back");
forwardAction = new TDEAction( i18n("&Forward"), "forward",
- TDEStdAccel::shortcut(TDEStdAccel::Next), TQT_TQOBJECT(this),
+ TDEStdAccel::shortcut(TDEStdAccel::Next), this,
TQT_SLOT(forward()), actionCollection(), "move_forward");
- hintAction = KStdGameAction::hint(TQT_TQOBJECT(this), TQT_SLOT(suggestion()), actionCollection());
+ hintAction = KStdGameAction::hint(this, TQT_SLOT(suggestion()), actionCollection());
- KStdAction::copy( TQT_TQOBJECT(this), TQT_SLOT(copy()), actionCollection());
- pasteAction = KStdAction::paste( TQT_TQOBJECT(this), TQT_SLOT(paste()), actionCollection());
+ KStdAction::copy( this, TQT_SLOT(copy()), actionCollection());
+ pasteAction = KStdAction::paste( this, TQT_SLOT(paste()), actionCollection());
(void) new TDEAction( i18n("&Restore Position"),
TDEStdAccel::shortcut(TDEStdAccel::Open),
- TQT_TQOBJECT(this), TQT_SLOT(restorePosition()),
+ this, TQT_SLOT(restorePosition()),
actionCollection(), "edit_restore" );
(void) new TDEAction( i18n("&Save Position"),
TDEStdAccel::shortcut(TDEStdAccel::Save),
- TQT_TQOBJECT(this), TQT_SLOT(savePosition()),
+ this, TQT_SLOT(savePosition()),
actionCollection(), "edit_save" );
TDEToggleAction *ta;
ta = new TDEToggleAction( i18n("&Network Play"), "network", Key_N,
actionCollection(), "game_net");
- connect(ta, TQT_SIGNAL(toggled(bool)), TQT_TQOBJECT(this), TQT_SLOT(gameNetwork(bool)));
+ connect(ta, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(gameNetwork(bool)));
editAction = new TDEToggleAction( i18n("&Modify"), "edit",
CTRL+Key_Insert, actionCollection(), "edit_modify");
- connect(editAction, TQT_SIGNAL(toggled(bool)), TQT_TQOBJECT(this), TQT_SLOT( editModify(bool)));
+ connect(editAction, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT( editModify(bool)));
- showMenubar = KStdAction::showMenubar(TQT_TQOBJECT(this), TQT_SLOT(toggleMenubar()), actionCollection());
- KStdAction::saveOptions( TQT_TQOBJECT(this), TQT_SLOT(writeConfig()), actionCollection());
+ showMenubar = KStdAction::showMenubar(this, TQT_SLOT(toggleMenubar()), actionCollection());
+ KStdAction::saveOptions( this, TQT_SLOT(writeConfig()), actionCollection());
- KStdAction::preferences( TQT_TQOBJECT(this), TQT_SLOT(configure()), actionCollection());
+ KStdAction::preferences( this, TQT_SLOT(configure()), actionCollection());
moveSlowAction = new TDEToggleAction( i18n("&Move Slow"), 0,
actionCollection(), "options_moveSlow");
- connect(moveSlowAction, TQT_SIGNAL(toggled(bool)), TQT_TQOBJECT(this), TQT_SLOT(optionMoveSlow(bool)));
+ connect(moveSlowAction, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(optionMoveSlow(bool)));
renderBallsAction = new TDEToggleAction( i18n("&Render Balls"), 0,
actionCollection(), "options_renderBalls");
- connect(renderBallsAction, TQT_SIGNAL(toggled(bool)), TQT_TQOBJECT(this), TQT_SLOT(optionRenderBalls(bool)));
+ connect(renderBallsAction, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(optionRenderBalls(bool)));
showSpyAction = new TDEToggleAction( i18n("&Spy"), 0,
actionCollection(), "options_showSpy");
- connect(showSpyAction, TQT_SIGNAL(toggled(bool)), TQT_TQOBJECT(this), TQT_SLOT(optionShowSpy(bool)));
+ connect(showSpyAction, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(optionShowSpy(bool)));
levelAction = KStdGameAction::chooseGameType(0, 0, actionCollection());
@@ -422,7 +422,7 @@ void AbTop::setupStatusBar()
spyPopup->insertItem(spy2, 2);
spyPopup->insertItem(spy3, 3);
connect( spyPopup, TQT_SIGNAL(activated(int)),
- TQT_TQOBJECT(this), TQT_SLOT(setSpy(int)) );
+ this, TQT_SLOT(setSpy(int)) );
tb->insertButton(spy0, 30, spyPopup,
TRUE, i18n("Spy"));
}
@@ -801,7 +801,7 @@ void AbTop::gameNetwork(bool on)
net->addListener(h2, p);
}
TQObject::connect(net, TQT_SIGNAL(gotPosition(const char *)),
- TQT_TQOBJECT(this), TQT_SLOT(pastePosition(const char *)) );
+ this, TQT_SLOT(pastePosition(const char *)) );
}