summaryrefslogtreecommitdiffstats
path: root/kgeography/src/divisioncapitalasker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kgeography/src/divisioncapitalasker.cpp')
-rw-r--r--kgeography/src/divisioncapitalasker.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kgeography/src/divisioncapitalasker.cpp b/kgeography/src/divisioncapitalasker.cpp
index 0fcdb8b8..b87437a2 100644
--- a/kgeography/src/divisioncapitalasker.cpp
+++ b/kgeography/src/divisioncapitalasker.cpp
@@ -10,31 +10,31 @@
#include <klocale.h>
-#include <qradiobutton.h>
+#include <tqradiobutton.h>
#include "divisioncapitalasker.h"
#include "map.h"
-divisionCapitalAsker::divisionCapitalAsker(QWidget *parent, KGmap *m, QWidget *w, uint count) : boxAsker(parent, m, w, count)
+divisionCapitalAsker::divisionCapitalAsker(TQWidget *parent, KGmap *m, TQWidget *w, uint count) : boxAsker(parent, m, w, count)
{
init();
}
-bool divisionCapitalAsker::nextBoxAskerQuestionHook(const QString &division, int i, bool isAnswer)
+bool divisionCapitalAsker::nextBoxAskerQuestionHook(const TQString &division, int i, bool isAnswer)
{
bool b;
if (isAnswer)
{
- QString sw = i18n("There are two ways of dealing with the translation of \"The capital of %1 is...\". The first option simply replaces %1 with the translated name of the relevant region. If the grammar of your language allows this, choose this option by setting the translation of this message to 1, and leave untranslated the translations of \"The capital of %1 is...\" that have the placename embedded (or translate them as - if you wish to show the file as fully translated. The second option is to translate all messages in full - this is likely to be required in the case of highly-inflected languages like Russian. To choose this option, set the translation of this message to 0, and translate all the messages.", "0");
+ TQString sw = i18n("There are two ways of dealing with the translation of \"The capital of %1 is...\". The first option simply replaces %1 with the translated name of the relevant region. If the grammar of your language allows this, choose this option by setting the translation of this message to 1, and leave untranslated the translations of \"The capital of %1 is...\" that have the placename embedded (or translate them as - if you wish to show the file as fully translated. The second option is to translate all messages in full - this is likely to be required in the case of highly-inflected languages like Russian. To choose this option, set the translation of this message to 0, and translate all the messages.", "0");
if (sw == "1")
{
- QString divisionName = i18n(p_map -> getFileName().utf8(), division.utf8());
- QString text = i18n("The capital of %1 is...");
+ TQString divisionName = i18n(p_map -> getFileName().utf8(), division.utf8());
+ TQString text = i18n("The capital of %1 is...");
setQuestion(text.arg(divisionName));
}
else
{
- QString s = QString("The capital of %1 is...").arg(division);
+ TQString s = TQString("The capital of %1 is...").arg(division);
setQuestion(i18n(p_map -> getFileName().utf8(), s.utf8()));
}
p_currentAnswer.setQuestion(i18n(p_map -> getFileName().utf8(), division.utf8()));
@@ -45,7 +45,7 @@ bool divisionCapitalAsker::nextBoxAskerQuestionHook(const QString &division, int
}
else
{
- QString capital;
+ TQString capital;
capital = p_map -> getDivisionCapital(division);
// There are crazy countries like Norway where two different divisions
// have the same capital, avoid asking
@@ -69,7 +69,7 @@ void divisionCapitalAsker::setAnswerHook(int userSays)
p_currentAnswer.setAnswer(p_rb[userSays] -> text());
}
-QString divisionCapitalAsker::getQuestionHook() const
+TQString divisionCapitalAsker::getQuestionHook() const
{
return i18n("Capital of Division");
}