summaryrefslogtreecommitdiffstats
path: root/kiten/learn.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-04 02:22:38 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-04 02:22:38 +0000
commit98a12d05a48814bec3870b9a6d5865475cfa1c95 (patch)
treea711801e47696fb0cf162abd7330e0b5b480ba39 /kiten/learn.cpp
parent421a1845137c7c396b5d03bce53237fcb149d602 (diff)
downloadtdeedu-98a12d05a48814bec3870b9a6d5865475cfa1c95.tar.gz
tdeedu-98a12d05a48814bec3870b9a6d5865475cfa1c95.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1211429 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kiten/learn.cpp')
-rw-r--r--kiten/learn.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kiten/learn.cpp b/kiten/learn.cpp
index 02b21618..548f87d0 100644
--- a/kiten/learn.cpp
+++ b/kiten/learn.cpp
@@ -138,12 +138,12 @@ Learn::Learn(Dict::Index *parentDict, TQWidget *parent, const char *name)
TQVBoxLayout *quizLayout = new TQVBoxLayout(quizTop, KDialog::marginHint(), KDialog::spacingHint());
quizLayout->addStretch();
- TQHBoxLayout *hlayout = new TQHBoxLayout(quizLayout);
+ TQHBoxLayout *htqlayout = new TQHBoxLayout(quizLayout);
qKanji = new TQPushButton(quizTop);
connect(qKanji, TQT_SIGNAL(clicked()), this, TQT_SLOT(qKanjiClicked()));
- hlayout->addStretch();
- hlayout->addWidget(qKanji);
- hlayout->addStretch();
+ htqlayout->addStretch();
+ htqlayout->addWidget(qKanji);
+ htqlayout->addStretch();
quizLayout->addStretch();
answers = new TQButtonGroup(1, Horizontal, quizTop);
@@ -473,8 +473,8 @@ void Learn::add(Dict::Entry toAdd, bool noEmit)
{
// Remove peripheral readings: This is a study mode, not a reference mode
TQRegExp inNames (",\\s*[A-Za-z ]+:.*");
- TQString readings = Dict::prettyKanjiReading(toAdd.readings()).replace(inNames, "");
- TQString meanings = shortenString(Dict::prettyMeaning(toAdd.meanings()).replace(inNames, ""));
+ TQString readings = Dict::prettyKanjiReading(toAdd.readings()).tqreplace(inNames, "");
+ TQString meanings = shortenString(Dict::prettyMeaning(toAdd.meanings()).tqreplace(inNames, ""));
TQString kanji = toAdd.kanji();
// here's a dirty rotten cheat (well, not really)
@@ -730,7 +730,7 @@ TQString Learn::randomMeaning(TQStringList &oldMeanings)
}
//kdDebug() << "curMeaning: " << curItem->text(guessOn) << endl;
}
- while (oldMeanings.contains(meaning) || meaning == curItem->text(guessOn));
+ while (oldMeanings.tqcontains(meaning) || meaning == curItem->text(guessOn));
oldMeanings.append(meaning);
meaning = shortenString(meaning);