diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:58:26 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:58:26 +0000 |
commit | 838baf3f99ec5ab81b063eb5449a3381d860f377 (patch) | |
tree | dd31abcfde08ca92e4623b8f50b3d762a87c997a /kpoker/top.cpp | |
parent | 2bf598bafa22fac4126fc8842df6b0119aadc0e9 (diff) | |
download | tdegames-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 'kpoker/top.cpp')
-rw-r--r-- | kpoker/top.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/kpoker/top.cpp b/kpoker/top.cpp index a58d5666..a1659954 100644 --- a/kpoker/top.cpp +++ b/kpoker/top.cpp @@ -61,7 +61,7 @@ PokerWindow::PokerWindow() statusBar()->addWidget(LHLabel, 0, true); m_kpok->updateLHLabel(); - //FIXME: LHLabel is shown twize until the bar is repainted! + //FIXME: LHLabel is shown twize until the bar is tqrepainted! initKAction(); readOptions(); @@ -79,46 +79,46 @@ PokerWindow::~PokerWindow() void PokerWindow::initKAction() { //Game - KStdGameAction::gameNew(m_kpok, TQT_SLOT(newGame()), actionCollection()); - KStdGameAction::save(m_kpok, TQT_SLOT(saveGame()), actionCollection()); - KStdGameAction::quit(this, TQT_SLOT(close()), actionCollection()); + KStdGameAction::gameNew(TQT_TQOBJECT(m_kpok), TQT_SLOT(newGame()), actionCollection()); + KStdGameAction::save(TQT_TQOBJECT(m_kpok), TQT_SLOT(saveGame()), actionCollection()); + KStdGameAction::quit(TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection()); //Settings showMenubarAction = - KStdAction::showMenubar(this, TQT_SLOT(toggleMenubar()), actionCollection()); + KStdAction::showMenubar(TQT_TQOBJECT(this), TQT_SLOT(toggleMenubar()), actionCollection()); - soundAction = new KToggleAction(i18n("Soun&d"), 0, m_kpok, + soundAction = new KToggleAction(i18n("Soun&d"), 0, TQT_TQOBJECT(m_kpok), TQT_SLOT(toggleSound()), actionCollection(), "options_sound"); if (m_kpok->getSound()) m_kpok->toggleSound(); - blinkingAction = new KToggleAction(i18n("&Blinking Cards"), 0, m_kpok, + blinkingAction = new KToggleAction(i18n("&Blinking Cards"), 0, TQT_TQOBJECT(m_kpok), TQT_SLOT(toggleBlinking()), actionCollection(), "options_blinking"); if (m_kpok->getBlinking()) m_kpok->toggleBlinking(); adjustAction = new KToggleAction(i18n("&Adjust Bet is Default"), 0, - m_kpok, TQT_SLOT(toggleAdjust()), actionCollection(), "options_adjust"); + TQT_TQOBJECT(m_kpok), TQT_SLOT(toggleAdjust()), actionCollection(), "options_adjust"); if (m_kpok->getAdjust()) m_kpok->toggleAdjust(); showStatusbarAction = - KStdAction::showStatusbar(this, TQT_SLOT(toggleStatusbar()), actionCollection()); + KStdAction::showStatusbar(TQT_TQOBJECT(this), TQT_SLOT(toggleStatusbar()), actionCollection()); - KStdAction::saveOptions(this, TQT_SLOT(saveOptions()), actionCollection()); - KStdGameAction::carddecks(m_kpok, TQT_SLOT(slotCardDeck()), actionCollection()); - KStdAction::preferences(m_kpok, TQT_SLOT(slotPreferences()), actionCollection()); + KStdAction::saveOptions(TQT_TQOBJECT(this), TQT_SLOT(saveOptions()), actionCollection()); + KStdGameAction::carddecks(TQT_TQOBJECT(m_kpok), TQT_SLOT(slotCardDeck()), actionCollection()); + KStdAction::preferences(TQT_TQOBJECT(m_kpok), TQT_SLOT(slotPreferences()), actionCollection()); // Keyboard shortcuts. - (void)new KAction(i18n("Draw"), KShortcut(Qt::Key_Return), m_kpok, + (void)new KAction(i18n("Draw"), KShortcut(TQt::Key_Return), TQT_TQOBJECT(m_kpok), TQT_SLOT(drawClick()), actionCollection(), "draw"); - (void)new KAction(i18n("Exchange Card 1"), KShortcut(Qt::Key_1), m_kpok, + (void)new KAction(i18n("Exchange Card 1"), KShortcut(TQt::Key_1), TQT_TQOBJECT(m_kpok), TQT_SLOT(exchangeCard1()), actionCollection(), "exchange_card_1"); - (void)new KAction(i18n("Exchange Card 2"), KShortcut(Qt::Key_2), m_kpok, + (void)new KAction(i18n("Exchange Card 2"), KShortcut(TQt::Key_2), TQT_TQOBJECT(m_kpok), TQT_SLOT(exchangeCard2()), actionCollection(), "exchange_card_2"); - (void)new KAction(i18n("Exchange Card 3"), KShortcut(Qt::Key_3), m_kpok, + (void)new KAction(i18n("Exchange Card 3"), KShortcut(TQt::Key_3), TQT_TQOBJECT(m_kpok), TQT_SLOT(exchangeCard3()), actionCollection(), "exchange_card_3"); - (void)new KAction(i18n("Exchange Card 4"), KShortcut(Qt::Key_4), m_kpok, + (void)new KAction(i18n("Exchange Card 4"), KShortcut(TQt::Key_4), TQT_TQOBJECT(m_kpok), TQT_SLOT(exchangeCard4()), actionCollection(), "exchange_card_4"); - (void)new KAction(i18n("Exchange Card 5"), KShortcut(Qt::Key_5), m_kpok, + (void)new KAction(i18n("Exchange Card 5"), KShortcut(TQt::Key_5), TQT_TQOBJECT(m_kpok), TQT_SLOT(exchangeCard5()), actionCollection(), "exchange_card_5"); setupGUI( KMainWindow::Save | StatusBar | Keys | Create); @@ -177,7 +177,7 @@ bool PokerWindow::queryClose() return true; // Only ask if the game is changed in some way. - switch(KMessageBox::warningYesNoCancel(this, i18n("Do you want to save this game?"), TQString::null, KStdGuiItem::save(), KStdGuiItem::dontSave())) { + switch(KMessageBox::warningYesNoCancel(this, i18n("Do you want to save this game?"), TQString(), KStdGuiItem::save(), KStdGuiItem::dontSave())) { case KMessageBox::Yes : m_kpok->saveGame(); return true; @@ -250,7 +250,7 @@ bool PokerWindow::eventFilter(TQObject*, TQEvent* e) { if (e->type() == TQEvent::MouseButtonPress) { - if (((TQMouseEvent*)e)->button() == RightButton) { + if (((TQMouseEvent*)e)->button() == Qt::RightButton) { TQPopupMenu* popup = (TQPopupMenu*) factory()->container("popup", this); if (popup) popup->popup(TQCursor::pos()); |