summaryrefslogtreecommitdiffstats
path: root/klines/klines.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
commit576eb4299a00bc053db35414406f46372a0f70f2 (patch)
tree4c030922d533821db464af566188e7d40cc8848c /klines/klines.cpp
parent0718336b6017d1a4fc1d626544180a5a2a29ddec (diff)
downloadtdegames-576eb4299a00bc053db35414406f46372a0f70f2.tar.gz
tdegames-576eb4299a00bc053db35414406f46372a0f70f2.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'klines/klines.cpp')
-rw-r--r--klines/klines.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/klines/klines.cpp b/klines/klines.cpp
index d5f36e35..50d96163 100644
--- a/klines/klines.cpp
+++ b/klines/klines.cpp
@@ -22,11 +22,11 @@
// The implementation of the KLines widget
//
-#include <qkeycode.h>
-#include <qlabel.h>
-#include <qpushbutton.h>
-#include <qtooltip.h>
-#include <qstring.h>
+#include <tqkeycode.h>
+#include <tqlabel.h>
+#include <tqpushbutton.h>
+#include <tqtooltip.h>
+#include <tqstring.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
@@ -64,10 +64,10 @@ KLines::KLines()
setCentralWidget( mwidget );
lsb = mwidget->GetLsb();
- connect(lsb, SIGNAL(endTurn()), this, SLOT(makeTurn()));
- connect(lsb, SIGNAL(eraseLine(int)), this, SLOT(addScore(int)));
- connect(lsb, SIGNAL(endGame()), this, SLOT(endGame()));
- connect(lsb, SIGNAL(userTurn()), this, SLOT(userTurn()));
+ connect(lsb, TQT_SIGNAL(endTurn()), this, TQT_SLOT(makeTurn()));
+ connect(lsb, TQT_SIGNAL(eraseLine(int)), this, TQT_SLOT(addScore(int)));
+ connect(lsb, TQT_SIGNAL(endGame()), this, TQT_SLOT(endGame()));
+ connect(lsb, TQT_SIGNAL(userTurn()), this, TQT_SLOT(userTurn()));
lPrompt = mwidget->GetPrompt();
@@ -82,7 +82,7 @@ KLines::KLines()
initKAction();
- connect(&demoTimer, SIGNAL(timeout()), this, SLOT(slotDemo()));
+ connect(&demoTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotDemo()));
setFocusPolicy(StrongFocus);
setFocus();
@@ -104,21 +104,21 @@ KLines::~KLines()
*/
void KLines::initKAction()
{
- KStdGameAction::gameNew(this, SLOT(startGame()), actionCollection());
- act_demo = KStdGameAction::demo(this, SLOT(startDemo()), actionCollection());
+ KStdGameAction::gameNew(this, TQT_SLOT(startGame()), actionCollection());
+ act_demo = KStdGameAction::demo(this, TQT_SLOT(startDemo()), actionCollection());
act_demo->setText(i18n("Start &Tutorial"));
- KStdGameAction::highscores(this, SLOT(viewHighScore()), actionCollection());
- KStdGameAction::quit(this, SLOT(close()), actionCollection());
- endTurnAction = KStdGameAction::endTurn(this, SLOT(makeTurn()), actionCollection());
+ KStdGameAction::highscores(this, TQT_SLOT(viewHighScore()), actionCollection());
+ KStdGameAction::quit(this, TQT_SLOT(close()), actionCollection());
+ endTurnAction = KStdGameAction::endTurn(this, TQT_SLOT(makeTurn()), actionCollection());
showNextAction = new KToggleAction(i18n("&Show Next"), KShortcut(CTRL+Key_P),
- this, SLOT(switchPrompt()), actionCollection(), "options_show_next");
+ this, TQT_SLOT(switchPrompt()), actionCollection(), "options_show_next");
showNextAction->setCheckedState(i18n("Hide Next"));
showNumberedAction = new KToggleAction(i18n("&Use Numbered Balls"), KShortcut(),
- this, SLOT(switchNumbered()), actionCollection(), "options_show_numbered");
- undoAction = KStdGameAction::undo(this, SLOT(undo()), actionCollection());
+ this, TQT_SLOT(switchNumbered()), actionCollection(), "options_show_numbered");
+ undoAction = KStdGameAction::undo(this, TQT_SLOT(undo()), actionCollection());
levelAction = KStdGameAction::chooseGameType(0, 0, actionCollection());
- QStringList items;
+ TQStringList items;
for (uint i=0; i<Nb_Levels; i++)
items.append( i18n(LEVEL[i]) );
levelAction->setItems(items);
@@ -128,11 +128,11 @@ void KLines::initKAction()
showNumberedAction->setChecked(Prefs::numberedBalls());
lPrompt->setPrompt(Prefs::showNext());
- (void)new KAction(i18n("Move Left"), Key_Left, lsb, SLOT(moveLeft()), actionCollection(), "left");
- (void)new KAction(i18n("Move Right"), Key_Right, lsb, SLOT(moveRight()), actionCollection(), "right");
- (void)new KAction(i18n("Move Up"), Key_Up, lsb, SLOT(moveUp()), actionCollection(), "up");
- (void)new KAction(i18n("Move Down"), Key_Down, lsb, SLOT(moveDown()), actionCollection(), "down");
- (void)new KAction(i18n("Move Ball"), Key_Space, lsb, SLOT(placePlayerBall()), actionCollection(), "place_ball");
+ (void)new KAction(i18n("Move Left"), Key_Left, lsb, TQT_SLOT(moveLeft()), actionCollection(), "left");
+ (void)new KAction(i18n("Move Right"), Key_Right, lsb, TQT_SLOT(moveRight()), actionCollection(), "right");
+ (void)new KAction(i18n("Move Up"), Key_Up, lsb, TQT_SLOT(moveUp()), actionCollection(), "up");
+ (void)new KAction(i18n("Move Down"), Key_Down, lsb, TQT_SLOT(moveDown()), actionCollection(), "down");
+ (void)new KAction(i18n("Move Ball"), Key_Space, lsb, TQT_SLOT(placePlayerBall()), actionCollection(), "place_ball");
setupGUI( KMainWindow::Save | Keys | StatusBar | Create );
}
@@ -212,7 +212,7 @@ void KLines::slotDemo()
int ballColors = -1;
int clickX = 0;
int clickY = 0;
- QString msg;
+ TQString msg;
demoStep++;
if ((demoStep % 2) == 0)
{
@@ -413,7 +413,7 @@ void KLines::slotDemo()
}
}
-void KLines::focusOutEvent(QFocusEvent *ev)
+void KLines::focusOutEvent(TQFocusEvent *ev)
{
if (bDemo)
{
@@ -424,7 +424,7 @@ void KLines::focusOutEvent(QFocusEvent *ev)
KMainWindow::focusOutEvent(ev);
}
-void KLines::focusInEvent(QFocusEvent *ev)
+void KLines::focusInEvent(TQFocusEvent *ev)
{
if (bDemo)
{
@@ -573,7 +573,7 @@ void KLines::switchUndo(bool bu)
undoAction->setEnabled(bu);
}
-void KLines::keyPressEvent(QKeyEvent *e)
+void KLines::keyPressEvent(TQKeyEvent *e)
{
if (lsb->gameOver() && (e->key() == Qt::Key_Space))
{