summaryrefslogtreecommitdiffstats
path: root/katomic
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:55:35 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:55:35 -0600
commitc0f375feba0103bed2bac1b1f05e76e9ae28fa89 (patch)
tree9c30a9097d650343df41d867f0e008769529eb08 /katomic
parent0e2b76239f354a9eead0b4e37d86d390ec57ffa9 (diff)
downloadtdegames-c0f375feba0103bed2bac1b1f05e76e9ae28fa89.tar.gz
tdegames-c0f375feba0103bed2bac1b1f05e76e9ae28fa89.zip
Remove additional unneeded tq method conversions
Diffstat (limited to 'katomic')
-rw-r--r--katomic/gamewidget.cpp24
-rw-r--r--katomic/molek.cpp8
2 files changed, 16 insertions, 16 deletions
diff --git a/katomic/gamewidget.cpp b/katomic/gamewidget.cpp
index daeb9438..194ff3f6 100644
--- a/katomic/gamewidget.cpp
+++ b/katomic/gamewidget.cpp
@@ -95,11 +95,11 @@ void GameWidget::doRedo ()
}
void GameWidget::gameOver(int moves) {
- KMessageBox::information(this, i18n("You solved level %1 with %2 moves!").tqarg(level).tqarg(moves), i18n("Congratulations"));
+ KMessageBox::information(this, i18n("You solved level %1 with %2 moves!").arg(level).arg(moves), i18n("Congratulations"));
KScoreDialog high(KScoreDialog::Name | KScoreDialog::Score, this);
- high.setCaption(i18n("Level %1 Highscores").tqarg(level));
- high.setConfigGroup(TQString("Highscores Level %1").tqarg(level));
+ high.setCaption(i18n("Level %1 Highscores").arg(level));
+ high.setConfigGroup(TQString("Highscores Level %1").arg(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").tqarg(l).utf8());
- KConfigGroup newConfig(kapp->config(), TQString("Highscores Level %1").tqarg(l).utf8());
+ KConfigGroup oldConfig(kapp->config(), TQString("High Scores Level %1").arg(l).utf8());
+ KConfigGroup newConfig(kapp->config(), TQString("Highscores Level %1").arg(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").tqarg(l));
+ TQString levelFile = locate("appdata", TQString("levels/level_%1").arg(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").tqarg(level)) &&
- kapp->config()->hasGroup(TQString("High Scores Level %1").tqarg(level)))
+ if (!kapp->config()->hasGroup(TQString("Highscores Level %1").arg(level)) &&
+ kapp->config()->hasGroup(TQString("High Scores Level %1").arg(level)))
mergeHighScores(level);
- highScore->setConfigGroup(TQString("Highscores Level %1").tqarg(level));
+ highScore->setConfigGroup(TQString("Highscores Level %1").arg(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->tqrepaint();
+ feld->repaint();
}
void GameWidget::restartLevel()
@@ -245,8 +245,8 @@ GameWidget::~GameWidget()
void GameWidget::showHighscores ()
{
KScoreDialog high(KScoreDialog::Name | KScoreDialog::Score, this);
- high.setCaption(i18n("Level %1 Highscores").tqarg(level));
- high.setConfigGroup(TQString("Highscores Level %1").tqarg(level));
+ high.setCaption(i18n("Level %1 Highscores").arg(level));
+ high.setConfigGroup(TQString("Highscores Level %1").arg(level));
high.exec();
}
diff --git a/katomic/molek.cpp b/katomic/molek.cpp
index 6731962f..4a0562c2 100644
--- a/katomic/molek.cpp
+++ b/katomic/molek.cpp
@@ -62,7 +62,7 @@ void Molek::load (const KSimpleConfig& config)
if (value.isEmpty())
break;
- current.obj = value.tqat(0).latin1();
+ current.obj = value.at(0).latin1();
value = value.mid(2);
if (value.isNull())
value = "";
@@ -82,7 +82,7 @@ void Molek::load (const KSimpleConfig& config)
line = config.readEntry(key);
for (int i = 0; i < MOLEK_SIZE; i++)
- molek[i][j] = atom2int(line.tqat(i).latin1());
+ molek[i][j] = atom2int(line.at(i).latin1());
}
mname = i18n(config.readEntry("Name", I18N_NOOP("Noname")).latin1());
@@ -103,12 +103,12 @@ void Molek::load (const KSimpleConfig& config)
height++;
width++;
- tqrepaint ();
+ repaint ();
}
void Molek::paintEvent( TQPaintEvent * )
{
- TQString st = i18n("Level: %1").tqarg(level);
+ TQString st = i18n("Level: %1").arg(level);
TQPainter paint (this);
paint.setPen (TQColor (190, 190, 190));