diff options
Diffstat (limited to 'kpoker/top.cpp')
-rw-r--r-- | kpoker/top.cpp | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/kpoker/top.cpp b/kpoker/top.cpp index 76e4029e..95229081 100644 --- a/kpoker/top.cpp +++ b/kpoker/top.cpp @@ -50,14 +50,14 @@ PokerWindow::PokerWindow() LHLabel = new TQLabel(statusBar()); LHLabel->adjustSize(); - connect(m_kpok, TQT_SIGNAL(changeLastHand(const TQString &, bool)), - this, TQT_SLOT(setHand(const TQString &, bool))); - connect(m_kpok, TQT_SIGNAL(showClickToHold(bool)), - this, TQT_SLOT(showClickToHold(bool))); - connect(m_kpok, TQT_SIGNAL(clearStatusBar()), - this, TQT_SLOT(clearStatusBar())); - connect(m_kpok, TQT_SIGNAL(statusBarMessage(TQString)), - this, TQT_SLOT(statusBarMessage(TQString))); + connect(m_kpok, TQ_SIGNAL(changeLastHand(const TQString &, bool)), + this, TQ_SLOT(setHand(const TQString &, bool))); + connect(m_kpok, TQ_SIGNAL(showClickToHold(bool)), + this, TQ_SLOT(showClickToHold(bool))); + connect(m_kpok, TQ_SIGNAL(clearStatusBar()), + this, TQ_SLOT(clearStatusBar())); + connect(m_kpok, TQ_SIGNAL(statusBarMessage(TQString)), + this, TQ_SLOT(statusBarMessage(TQString))); statusBar()->addWidget(LHLabel, 0, true); m_kpok->updateLHLabel(); @@ -79,47 +79,47 @@ PokerWindow::~PokerWindow() void PokerWindow::initTDEAction() { //Game - 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()); + KStdGameAction::gameNew(m_kpok, TQ_SLOT(newGame()), actionCollection()); + KStdGameAction::save(m_kpok, TQ_SLOT(saveGame()), actionCollection()); + KStdGameAction::quit(this, TQ_SLOT(close()), actionCollection()); //Settings showMenubarAction = - KStdAction::showMenubar(TQT_TQOBJECT(this), TQT_SLOT(toggleMenubar()), actionCollection()); + KStdAction::showMenubar(this, TQ_SLOT(toggleMenubar()), actionCollection()); - soundAction = new TDEToggleAction(i18n("Soun&d"), 0, TQT_TQOBJECT(m_kpok), - TQT_SLOT(toggleSound()), actionCollection(), "options_sound"); + soundAction = new TDEToggleAction(i18n("Soun&d"), 0, m_kpok, + TQ_SLOT(toggleSound()), actionCollection(), "options_sound"); if (m_kpok->getSound()) m_kpok->toggleSound(); - blinkingAction = new TDEToggleAction(i18n("&Blinking Cards"), 0, TQT_TQOBJECT(m_kpok), - TQT_SLOT(toggleBlinking()), actionCollection(), "options_blinking"); + blinkingAction = new TDEToggleAction(i18n("&Blinking Cards"), 0, m_kpok, + TQ_SLOT(toggleBlinking()), actionCollection(), "options_blinking"); if (m_kpok->getBlinking()) m_kpok->toggleBlinking(); adjustAction = new TDEToggleAction(i18n("&Adjust Bet is Default"), 0, - TQT_TQOBJECT(m_kpok), TQT_SLOT(toggleAdjust()), actionCollection(), "options_adjust"); + m_kpok, TQ_SLOT(toggleAdjust()), actionCollection(), "options_adjust"); if (m_kpok->getAdjust()) m_kpok->toggleAdjust(); showStatusbarAction = - KStdAction::showStatusbar(TQT_TQOBJECT(this), TQT_SLOT(toggleStatusbar()), actionCollection()); + KStdAction::showStatusbar(this, TQ_SLOT(toggleStatusbar()), 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()); + KStdAction::saveOptions(this, TQ_SLOT(saveOptions()), actionCollection()); + KStdGameAction::carddecks(m_kpok, TQ_SLOT(slotCardDeck()), actionCollection()); + KStdAction::preferences(m_kpok, TQ_SLOT(slotPreferences()), actionCollection()); // Keyboard shortcuts. - (void)new TDEAction(i18n("Draw"), TDEShortcut(TQt::Key_Return), TQT_TQOBJECT(m_kpok), - TQT_SLOT(drawClick()), actionCollection(), "draw"); - (void)new TDEAction(i18n("Exchange Card 1"), TDEShortcut(TQt::Key_1), TQT_TQOBJECT(m_kpok), - TQT_SLOT(exchangeCard1()), actionCollection(), "exchange_card_1"); - (void)new TDEAction(i18n("Exchange Card 2"), TDEShortcut(TQt::Key_2), TQT_TQOBJECT(m_kpok), - TQT_SLOT(exchangeCard2()), actionCollection(), "exchange_card_2"); - (void)new TDEAction(i18n("Exchange Card 3"), TDEShortcut(TQt::Key_3), TQT_TQOBJECT(m_kpok), - TQT_SLOT(exchangeCard3()), actionCollection(), "exchange_card_3"); - (void)new TDEAction(i18n("Exchange Card 4"), TDEShortcut(TQt::Key_4), TQT_TQOBJECT(m_kpok), - TQT_SLOT(exchangeCard4()), actionCollection(), "exchange_card_4"); - (void)new TDEAction(i18n("Exchange Card 5"), TDEShortcut(TQt::Key_5), TQT_TQOBJECT(m_kpok), - TQT_SLOT(exchangeCard5()), actionCollection(), "exchange_card_5"); + (void)new TDEAction(i18n("Draw"), TDEShortcut(TQt::Key_Return), m_kpok, + TQ_SLOT(drawClick()), actionCollection(), "draw"); + (void)new TDEAction(i18n("Exchange Card 1"), TDEShortcut(TQt::Key_1), m_kpok, + TQ_SLOT(exchangeCard1()), actionCollection(), "exchange_card_1"); + (void)new TDEAction(i18n("Exchange Card 2"), TDEShortcut(TQt::Key_2), m_kpok, + TQ_SLOT(exchangeCard2()), actionCollection(), "exchange_card_2"); + (void)new TDEAction(i18n("Exchange Card 3"), TDEShortcut(TQt::Key_3), m_kpok, + TQ_SLOT(exchangeCard3()), actionCollection(), "exchange_card_3"); + (void)new TDEAction(i18n("Exchange Card 4"), TDEShortcut(TQt::Key_4), m_kpok, + TQ_SLOT(exchangeCard4()), actionCollection(), "exchange_card_4"); + (void)new TDEAction(i18n("Exchange Card 5"), TDEShortcut(TQt::Key_5), m_kpok, + TQ_SLOT(exchangeCard5()), actionCollection(), "exchange_card_5"); setupGUI( TDEMainWindow::Save | StatusBar | Keys | Create); } @@ -127,7 +127,7 @@ void PokerWindow::initTDEAction() void PokerWindow::readOptions() { - TDEConfig* conf = kapp->config(); + TDEConfig* conf = tdeApp->config(); conf->setGroup("General"); if (m_kpok->getSound() != conf->readBoolEntry("Sound", true)) @@ -235,7 +235,7 @@ void PokerWindow::clearStatusBar() void PokerWindow::saveOptions() { - TDEConfig* conf = kapp->config(); + TDEConfig* conf = tdeApp->config(); conf->setGroup("General"); conf->writeEntry("Sound", soundAction->isChecked()); @@ -250,7 +250,7 @@ bool PokerWindow::eventFilter(TQObject*, TQEvent* e) { if (e->type() == TQEvent::MouseButtonPress) { - if (((TQMouseEvent*)e)->button() == Qt::RightButton) { + if (((TQMouseEvent*)e)->button() == TQt::RightButton) { TQPopupMenu* popup = (TQPopupMenu*) factory()->container("popup", this); if (popup) popup->popup(TQCursor::pos()); |