Adapt to TQ_SIGNAL/TQSLOT

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/1/head
Michele Calgaro 6 months ago
parent 1b1fa82c10
commit cf6b453c75
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -22,9 +22,9 @@ MainWindow::MainWindow(TQWidget* parent, const char* name)
mMenu = new TDEPopupMenu(this);
actionQuit = KStdAction::quit(this, SLOT(close()), 0);
actionQuit = KStdAction::quit(this, TQ_SLOT(close()), 0);
actionNew = new TDEAction(i18n("&New Game"), "reload",
TQt::CTRL + TQt::Key_N, this, SLOT(newGame()),
TQt::CTRL + TQt::Key_N, this, TQ_SLOT(newGame()),
this, i18n("New Game"));
actionNew->plug(mMenu);
@ -34,11 +34,11 @@ MainWindow::MainWindow(TQWidget* parent, const char* name)
mGame = new TDEPopupMenu(this);
mGame->setCheckable(TRUE);
idTip = mGame->insertItem(i18n("&Highlight tips"),
this, SLOT(toggleTips()));
this, TQ_SLOT(toggleTips()));
idKnight = mGame->insertItem(i18n("&Show the knight"),
this, SLOT(toggleKnight()));
this, TQ_SLOT(toggleKnight()));
idCell = mGame->insertItem(i18n("&Random starting cell"),
this, SLOT(randomCell()));
this, TQ_SLOT(randomCell()));
menuBar()->insertItem(i18n("Settings"), mGame);
@ -163,11 +163,11 @@ MainWindow::newGame()
vbox->addLayout(hbox);
cancel = new TQPushButton(i18n("Cancel"), dlg);
connect(cancel, SIGNAL(clicked()), dlg, SLOT(reject()));
connect(cancel, TQ_SIGNAL(clicked()), dlg, TQ_SLOT(reject()));
hbox->addWidget(cancel);
ok = new TQPushButton(i18n("Apply"), dlg);
connect(ok, SIGNAL(clicked()), dlg, SLOT(accept()));
connect(ok, TQ_SIGNAL(clicked()), dlg, TQ_SLOT(accept()));
hbox->addWidget(ok);
if (dlg->exec()) {

Loading…
Cancel
Save