summaryrefslogtreecommitdiffstats
path: root/kpat/pwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpat/pwidget.cpp')
-rw-r--r--kpat/pwidget.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/kpat/pwidget.cpp b/kpat/pwidget.cpp
index 2eb38fc1..a726082d 100644
--- a/kpat/pwidget.cpp
+++ b/kpat/pwidget.cpp
@@ -59,29 +59,29 @@ pWidget::pWidget()
{
current_pwidget = this;
// TDECrash::setEmergencySaveFunction(::saveGame);
- KStdAction::quit(TQT_TQOBJECT(kapp), TQT_SLOT(quit()), actionCollection(), "game_exit");
+ KStdAction::quit(kapp, TQ_SLOT(quit()), actionCollection(), "game_exit");
- undo = KStdAction::undo(TQT_TQOBJECT(this), TQT_SLOT(undoMove()),
+ undo = KStdAction::undo(this, TQ_SLOT(undoMove()),
actionCollection(), "undo_move");
undo->setEnabled(false);
- (void)KStdAction::openNew(TQT_TQOBJECT(this), TQT_SLOT(newGame()),
+ (void)KStdAction::openNew(this, TQ_SLOT(newGame()),
actionCollection(), "new_game");
- (void)KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(openGame()),
+ (void)KStdAction::open(this, TQ_SLOT(openGame()),
actionCollection(), "open");
- recent = KStdAction::openRecent(TQT_TQOBJECT(this), TQT_SLOT(openGame(const KURL&)),
+ recent = KStdAction::openRecent(this, TQ_SLOT(openGame(const KURL&)),
actionCollection(), "open_recent");
recent->loadEntries(TDEGlobal::config());
- (void)KStdAction::saveAs(TQT_TQOBJECT(this), TQT_SLOT(saveGame()),
+ (void)KStdAction::saveAs(this, TQ_SLOT(saveGame()),
actionCollection(), "save");
- (void)new TDEAction(i18n("&Choose Game..."), 0, TQT_TQOBJECT(this), TQT_SLOT(chooseGame()),
+ (void)new TDEAction(i18n("&Choose Game..."), 0, this, TQ_SLOT(chooseGame()),
actionCollection(), "choose_game");
(void)new TDEAction(i18n("Restart &Game"), TQString::fromLatin1("reload"), 0,
- TQT_TQOBJECT(this), TQT_SLOT(restart()),
+ this, TQ_SLOT(restart()),
actionCollection(), "restart_game");
- (void)KStdAction::help(TQT_TQOBJECT(this), TQT_SLOT(helpGame()), actionCollection(), "help_game");
+ (void)KStdAction::help(this, TQ_SLOT(helpGame()), actionCollection(), "help_game");
- games = new TDESelectAction(i18n("&Game Type"), 0, TQT_TQOBJECT(this),
- TQT_SLOT(newGameType()),
+ games = new TDESelectAction(i18n("&Game Type"), 0, this,
+ TQ_SLOT(newGameType()),
actionCollection(), "game_type");
TQStringList list;
TQValueList<DealerInfo*>::ConstIterator it;
@@ -104,8 +104,8 @@ pWidget::pWidget()
TDEGlobal::dirs()->addResourceType("wallpaper", TDEStandardDirs::kde_default("data") + "kpat/backgrounds/");
TDEGlobal::dirs()->addResourceType("wallpaper", TDEStandardDirs::kde_default("data") + "ksnake/backgrounds/");
- wallpapers = new TDESelectAction(i18n("&Change Background"), 0, TQT_TQOBJECT(this),
- TQT_SLOT(changeWallpaper()),
+ wallpapers = new TDESelectAction(i18n("&Change Background"), 0, this,
+ TQ_SLOT(changeWallpaper()),
actionCollection(), "wallpaper");
list.clear();
wallpaperlist.clear();
@@ -131,17 +131,17 @@ pWidget::pWidget()
(void)new cardMap(midcolor);
- backs = new TDEAction(i18n("&Switch Cards..."), 0, TQT_TQOBJECT(this),
- TQT_SLOT(changeBackside()),
+ backs = new TDEAction(i18n("&Switch Cards..."), 0, this,
+ TQ_SLOT(changeBackside()),
actionCollection(), "backside");
- stats = new TDEAction(i18n("&Statistics"), 0, TQT_TQOBJECT(this), TQT_SLOT(showStats()),
+ stats = new TDEAction(i18n("&Statistics"), 0, this, TQ_SLOT(showStats()),
actionCollection(),"game_stats");
animation = new TDEToggleAction(i18n( "&Animation on Startup" ),
- 0, TQT_TQOBJECT(this), TQT_SLOT(animationChanged()),
+ 0, this, TQ_SLOT(animationChanged()),
actionCollection(), "animation");
dropaction = new TDEToggleAction(i18n("&Enable Autodrop"),
- 0, TQT_TQOBJECT(this), TQT_SLOT(enableAutoDrop()),
+ 0, this, TQ_SLOT(enableAutoDrop()),
actionCollection(), "enable_autodrop");
dropaction->setCheckedState(i18n("Disable Autodrop"));
@@ -347,11 +347,11 @@ void pWidget::newGameType()
name = name.replace(TQRegExp("[&']"), "");
name = name.replace(TQRegExp("[ ]"), "_").lower();
dill->setAnchorName("game_" + name);
- connect(dill, TQT_SIGNAL(saveGame()), TQT_SLOT(saveGame()));
- connect(dill, TQT_SIGNAL(gameInfo(const TQString&)),
- TQT_SLOT(slotGameInfo(const TQString &)));
- connect(dill, TQT_SIGNAL(updateMoves()),
- TQT_SLOT(slotUpdateMoves()));
+ connect(dill, TQ_SIGNAL(saveGame()), TQ_SLOT(saveGame()));
+ connect(dill, TQ_SIGNAL(gameInfo(const TQString&)),
+ TQ_SLOT(slotGameInfo(const TQString &)));
+ connect(dill, TQ_SIGNAL(updateMoves()),
+ TQ_SLOT(slotUpdateMoves()));
dill->setGameId(id);
dill->setupActions();
dill->setBackgroundPixmap(background, midcolor);
@@ -365,9 +365,9 @@ void pWidget::newGameType()
dill = DealerInfoList::self()->games().first()->createGame(this);
}
- connect(dill, TQT_SIGNAL(undoPossible(bool)), TQT_SLOT(undoPossible(bool)));
- connect(dill, TQT_SIGNAL(gameWon(bool)), TQT_SLOT(gameWon(bool)));
- connect(dill, TQT_SIGNAL(gameLost()), TQT_SLOT(gameLost()));
+ connect(dill, TQ_SIGNAL(undoPossible(bool)), TQ_SLOT(undoPossible(bool)));
+ connect(dill, TQ_SIGNAL(gameWon(bool)), TQ_SLOT(gameWon(bool)));
+ connect(dill, TQ_SIGNAL(gameLost()), TQ_SLOT(gameLost()));
dill->setAutoDropEnabled(dropaction->isChecked());
@@ -455,7 +455,7 @@ void pWidget::gameWon(bool withhelp)
#if TEST_SOLVER == 0
KMessageBox::information(this, congrats, i18n("Congratulations!"));
#endif
- TQTimer::singleShot(0, TQT_TQOBJECT(this), TQT_SLOT(newGame()));
+ TQTimer::singleShot(0, this, TQ_SLOT(newGame()));
#if TEST_SOLVER == 1
dill->demo();
#endif
@@ -491,7 +491,7 @@ void pWidget::gameLost()
KStdGuiItem::cont(),
dontAskAgainName) == KMessageBox::Yes) {
- TQTimer::singleShot(0, TQT_TQOBJECT(this), TQT_SLOT(newGame()));
+ TQTimer::singleShot(0, this, TQ_SLOT(newGame()));
}
}