summaryrefslogtreecommitdiffstats
path: root/kvoctrain/kvoctrain/kvt-core/QueryManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kvoctrain/kvoctrain/kvt-core/QueryManager.cpp')
-rw-r--r--kvoctrain/kvoctrain/kvt-core/QueryManager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kvoctrain/kvoctrain/kvt-core/QueryManager.cpp b/kvoctrain/kvoctrain/kvt-core/QueryManager.cpp
index f08246a5..f1b74ae4 100644
--- a/kvoctrain/kvoctrain/kvt-core/QueryManager.cpp
+++ b/kvoctrain/kvoctrain/kvt-core/QueryManager.cpp
@@ -93,7 +93,7 @@ TQString QueryManager::getSubType (const TQString & type)
{
int i;
TQString t = type;
- if ((i = t.tqfind(TQM_TYPE_DIV)) >= 0) {
+ if ((i = t.find(TQM_TYPE_DIV)) >= 0) {
t.remove(0, i+1);
return t;
}
@@ -105,7 +105,7 @@ TQString QueryManager::getSubType (const TQString & type)
TQString QueryManager::getMainType (const TQString & type)
{
int i;
- if ((i = type.tqfind(TQM_TYPE_DIV)) >= 0)
+ if ((i = type.find(TQM_TYPE_DIV)) >= 0)
return type.left(i);
else
return type;
@@ -238,7 +238,7 @@ QuerySelection QueryManager::select(kvoctrainDoc *doc, int act_lesson, int idx,
bool QueryManager::validate(kvoctrainExpr *expr, int act_lesson, int idx, TQString query_type)
{
TQString qtype;
- int pos = query_type.tqfind (TQM_TYPE_DIV);
+ int pos = query_type.find (TQM_TYPE_DIV);
if (pos >= 0)
qtype = query_type.left (pos);
else
@@ -648,7 +648,7 @@ void QueryManager::setLessonItemStr (const TQString & indices)
int pos;
TQString indices_copy = indices;
lessonitems.clear();
- while ((pos = indices_copy.tqfind(' ')) >= 0) {
+ while ((pos = indices_copy.find(' ')) >= 0) {
TQString s = indices_copy.left(pos);
indices_copy.remove(0, pos+1);
lessonitems.push_back(s.toInt());