diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:47:36 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:47:36 -0600 |
commit | 97d1732e257f8700488d7ca1660ae7eba8fc6065 (patch) | |
tree | 4c6397ed2c1dd6f7c3354b5b87f313547d92a35f /ksame/KSameWidget.cpp | |
parent | 9c27a1a03e02fd53aedc1a182444b35fd8e14967 (diff) | |
download | tdegames-97d1732e257f8700488d7ca1660ae7eba8fc6065.tar.gz tdegames-97d1732e257f8700488d7ca1660ae7eba8fc6065.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'ksame/KSameWidget.cpp')
-rw-r--r-- | ksame/KSameWidget.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/ksame/KSameWidget.cpp b/ksame/KSameWidget.cpp index 3a3f1120..a49db4f7 100644 --- a/ksame/KSameWidget.cpp +++ b/ksame/KSameWidget.cpp @@ -113,7 +113,7 @@ void KSameWidget::saveProperties(KConfig *conf) { } void KSameWidget::sizeChanged() { - stone->setFixedSize(stone->tqsizeHint()); + stone->setFixedSize(stone->sizeHint()); } void KSameWidget::showNumberRemainingToggled() @@ -121,11 +121,11 @@ void KSameWidget::showNumberRemainingToggled() if(showNumberRemaining->isChecked()){ TQStringList list; for(int i=1;i<=stone->colors();i++) - list.append(TQString("%1").tqarg(stone->count(i))); - TQString count = TQString(" (%1)").tqarg(list.join(",")); - status->changeItem(i18n("%1 Colors%2").tqarg(stone->colors()).tqarg(count),1); + list.append(TQString("%1").arg(stone->count(i))); + TQString count = TQString(" (%1)").arg(list.join(",")); + status->changeItem(i18n("%1 Colors%2").arg(stone->colors()).arg(count),1); } - else status->changeItem(i18n("%1 Colors").tqarg(stone->colors()),1); + else status->changeItem(i18n("%1 Colors").arg(stone->colors()),1); KConfig *cfg = kapp->config(); cfg->writeEntry("showRemaining", showNumberRemaining->isChecked()); @@ -162,7 +162,7 @@ void KSameWidget::m_new() { bno.setRange(0, 1000000, 1); bno.setLabel(i18n("Select a board:")); bno.setFocus(); - bno.setFixedSize(bno.tqsizeHint()); + bno.setFixedSize(bno.sizeHint()); bno.setValue(stone->board()); if (dlg.exec()) newGame(bno.value(),default_colors); @@ -188,15 +188,15 @@ void KSameWidget::m_showhs() { } void KSameWidget::setColors(int colors) { - status->changeItem(i18n("%1 Colors").tqarg(colors),1); + status->changeItem(i18n("%1 Colors").arg(colors),1); } void KSameWidget::setBoard(int board) { - status->changeItem(i18n("Board: %1").tqarg(board, 6), 2); + status->changeItem(i18n("Board: %1").arg(board, 6), 2); } void KSameWidget::setMarked(int m) { - status->changeItem(i18n("Marked: %1").tqarg(m, 6),3); + status->changeItem(i18n("Marked: %1").arg(m, 6),3); m_markedStones=m; } @@ -209,11 +209,11 @@ void KSameWidget::setScore(int score) { if(showNumberRemaining->isChecked()){ TQStringList list; for(int i=1;i<=stone->colors();i++) - list.append(TQString("%1").tqarg(stone->count(i))); - TQString count = TQString(" (%1)").tqarg(list.join(",")); - status->changeItem(i18n("%1 Colors%2").tqarg(stone->colors()).tqarg(count),1); + list.append(TQString("%1").arg(stone->count(i))); + TQString count = TQString(" (%1)").arg(list.join(",")); + status->changeItem(i18n("%1 Colors%2").arg(stone->colors()).arg(count),1); } - status->changeItem(i18n("Score: %1").tqarg(score, 6),4); + status->changeItem(i18n("Score: %1").arg(score, 6),4); undo->setEnabled(stone->undoPossible()); restart->setEnabled(!stone->isOriginalBoard()); } @@ -222,11 +222,11 @@ void KSameWidget::gameover() { if (stone->hasBonus()) { KNotifyClient::event(winId(), "game won", i18n("You even removed the last stone, great job! " - "This gave you a score of %1 in total.").tqarg(stone->score())); + "This gave you a score of %1 in total.").arg(stone->score())); } else { KNotifyClient::event(winId(), "game over", i18n("There are no more removeable stones. " - "You got a score of %1 in total.").tqarg(stone->score())); + "You got a score of %1 in total.").arg(stone->score())); } stone->unmark(); KScoreDialog d(KScoreDialog::Name | KScoreDialog::Score, this); |