summaryrefslogtreecommitdiffstats
path: root/katomic/gamewidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'katomic/gamewidget.cpp')
-rw-r--r--katomic/gamewidget.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/katomic/gamewidget.cpp b/katomic/gamewidget.cpp
index 2c9ccf0a..2bda7d0f 100644
--- a/katomic/gamewidget.cpp
+++ b/katomic/gamewidget.cpp
@@ -1,6 +1,6 @@
/* toplevel.cpp
- Copyright (C) 1998 Andreas Wüst (AndreasWuest@gmx.de)
+ Copyright (C) 1998 Andreas W�st (AndreasWuest@gmx.de)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -95,11 +95,11 @@ void GameWidget::doRedo ()
}
void GameWidget::gameOver(int moves) {
- KMessageBox::information(this, i18n("You solved level %1 with %2 moves!").arg(level).arg(moves), i18n("Congratulations"));
+ KMessageBox::information(this, i18n("You solved level %1 with %2 moves!").tqarg(level).tqarg(moves), i18n("Congratulations"));
KScoreDialog high(KScoreDialog::Name | KScoreDialog::Score, this);
- high.setCaption(i18n("Level %1 Highscores").arg(level));
- high.setConfigGroup(TQString("Highscores Level %1").arg(level));
+ high.setCaption(i18n("Level %1 Highscores").tqarg(level));
+ high.setConfigGroup(TQString("Highscores Level %1").tqarg(level));
KScoreDialog::FieldInfo scoreInfo;
@@ -118,8 +118,8 @@ void GameWidget::getMoves(int moves)
void GameWidget::mergeHighScores(int l)
{
- KConfigGroup oldConfig(kapp->config(), TQString("High Scores Level %1").arg(l).utf8());
- KConfigGroup newConfig(kapp->config(), TQString("Highscores Level %1").arg(l).utf8());
+ KConfigGroup oldConfig(kapp->config(), TQString("High Scores Level %1").tqarg(l).utf8());
+ KConfigGroup newConfig(kapp->config(), TQString("Highscores Level %1").tqarg(l).utf8());
newConfig.writeEntry("LastPlayer", oldConfig.readEntry("LastPlayer"));
@@ -138,7 +138,7 @@ void GameWidget::mergeHighScores(int l)
void GameWidget::updateLevel (int l)
{
level=l;
- TQString levelFile = locate("appdata", TQString("levels/level_%1").arg(l));
+ TQString levelFile = locate("appdata", TQString("levels/level_%1").tqarg(l));
if (levelFile.isNull()) {
return updateLevel(1);
}
@@ -147,11 +147,11 @@ void GameWidget::updateLevel (int l)
cfg.setGroup("Level");
feld->load(cfg);
- if (!kapp->config()->hasGroup(TQString("Highscores Level %1").arg(level)) &&
- kapp->config()->hasGroup(TQString("High Scores Level %1").arg(level)))
+ if (!kapp->config()->hasGroup(TQString("Highscores Level %1").tqarg(level)) &&
+ kapp->config()->hasGroup(TQString("High Scores Level %1").tqarg(level)))
mergeHighScores(level);
- highScore->setConfigGroup(TQString("Highscores Level %1").arg(level));
+ highScore->setConfigGroup(TQString("Highscores Level %1").tqarg(level));
highest.setNum(highScore->highScore());
if (highest != "0" ) hs->setText(highest);
@@ -159,7 +159,7 @@ void GameWidget::updateLevel (int l)
ys->setText("0");
scrl->setValue(level);
- feld->repaint();
+ feld->tqrepaint();
}
void GameWidget::restartLevel()
@@ -167,8 +167,8 @@ void GameWidget::restartLevel()
updateLevel(level);
}
-GameWidget::GameWidget ( TQWidget *parent, const char* name )
- : TQWidget( parent, name )
+GameWidget::GameWidget ( TQWidget *tqparent, const char* name )
+ : TQWidget( tqparent, name )
{
level = 1;
nlevels = KGlobal::dirs()->findAllResources("appdata", "levels/level_*",
@@ -188,10 +188,10 @@ GameWidget::GameWidget ( TQWidget *parent, const char* name )
// scrollbar
scrl = new TQScrollBar(1, nlevels, 1,
- 5, 1, TQScrollBar::Horizontal, vb, "scrl" );
+ 5, 1, Qt::Horizontal, vb, "scrl" );
connect (scrl, TQT_SIGNAL (valueChanged (int)), TQT_SLOT (updateLevel (int)));
- // molekül
+ // molek�l
molek = new Molek (vb, "molek");
feld->setMolek(molek);
@@ -214,7 +214,7 @@ GameWidget::GameWidget ( TQWidget *parent, const char* name )
headerFont.setBold(true);
hs = new TQLabel (highest, bg);
- hs->setAlignment(Qt::AlignRight);
+ hs->tqsetAlignment(TQt::AlignRight);
hs->setFont(headerFont);
slay->addWidget(hs);
@@ -223,7 +223,7 @@ GameWidget::GameWidget ( TQWidget *parent, const char* name )
slay->addWidget(new TQLabel(i18n("Your score so far:"), bg));
ys = new TQLabel (current, bg);
- ys->setAlignment(Qt::AlignRight);
+ ys->tqsetAlignment(TQt::AlignRight);
ys->setFont(headerFont);
slay->addWidget(ys);
@@ -245,8 +245,8 @@ GameWidget::~GameWidget()
void GameWidget::showHighscores ()
{
KScoreDialog high(KScoreDialog::Name | KScoreDialog::Score, this);
- high.setCaption(i18n("Level %1 Highscores").arg(level));
- high.setConfigGroup(TQString("Highscores Level %1").arg(level));
+ high.setCaption(i18n("Level %1 Highscores").tqarg(level));
+ high.setConfigGroup(TQString("Highscores Level %1").tqarg(level));
high.exec();
}