diff options
Diffstat (limited to 'kvoctrain/kvoctrain/kvt-core/QueryManager.h')
-rw-r--r-- | kvoctrain/kvoctrain/kvt-core/QueryManager.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/kvoctrain/kvoctrain/kvt-core/QueryManager.h b/kvoctrain/kvoctrain/kvt-core/QueryManager.h index 07567d22..bdd7d815 100644 --- a/kvoctrain/kvoctrain/kvt-core/QueryManager.h +++ b/kvoctrain/kvoctrain/kvt-core/QueryManager.h @@ -81,15 +81,15 @@ class TypeRelation { public: - TypeRelation (const QString & _short, const QString & _long) + TypeRelation (const TQString & _short, const TQString & _long) : shortId (_short), longId(_long) {} - QString shortStr() const { return shortId; } - QString longStr() const { return longId; } + TQString shortStr() const { return shortId; } + TQString longStr() const { return longId; } protected: - QString shortId, longId; + TQString shortId, longId; }; @@ -128,30 +128,30 @@ class QueryManager //void saveConfig (KConfig *); static vector<TypeRelation> getRelation (bool only_maintypes); - static void setTypeNames (vector<QString> names); - static QString getSubType (const QString & type); - static QString getMainType (const QString & type); + static void setTypeNames (vector<TQString> names); + static TQString getSubType (const TQString & type); + static TQString getMainType (const TQString & type); - static QString compStr(Prefs::EnumCompType::type type); - static QString gradeStr(int i); - static QString typeStr(const QString id); + static TQString compStr(Prefs::EnumCompType::type type); + static TQString gradeStr(int i); + static TQString typeStr(const TQString id); void setLessonItems(vector<int> indices) { lessonitems = indices; } - void setLessonItemStr(const QString & indices); + void setLessonItemStr(const TQString & indices); //void setDateItem (time_t time) { dateitem = time; } //void setQueryItem (int query) { queryitem = query; } //void setBadItem (int bad) { baditem = bad; } - //void setTypeItem (const QString & type) { typeitem = type; } + //void setTypeItem (const TQString & type) { typeitem = type; } //void setGradeItem (grade_t grade) { gradeitem = grade; } //void setBlockItem (int item, int grade); //void setExpireItem (int item, int grade); vector<int> lessonItems() const { return lessonitems; } - QString lessonItemStr() const; + TQString lessonItemStr() const; //time_t dateItem () const { return dateitem; } //int queryItem () const { return queryitem; } //int badItem () const { return baditem; } - //QString typeItem () const { return typeitem; } + //TQString typeItem () const { return typeitem; } //grade_t gradeItem () const { return gradeitem; } //int blockItem (int grade) const; //int expireItem (int grade) const; @@ -177,10 +177,10 @@ class QueryManager int oindex, int tindex); bool validate(kvoctrainExpr *expr, int act_lesson, - int index, QString type); + int index, TQString type); QuerySelection select(kvoctrainDoc*, int act_lesson, - int index, QString type); + int index, TQString type); bool validate(kvoctrainExpr *expr, int act_lesson, int index, QueryType type); @@ -196,7 +196,7 @@ class QueryManager bool compareQuery (CompType, int, int); bool compareBad (CompType, int, int); bool compareGrade (CompType, grade_t, grade_t); - bool compareType (CompType, const QString &, const QString &); + bool compareType (CompType, const TQString &, const TQString &); bool compareLesson (CompType type, int less, const vector<int> &limit, int current); /* CompType typecomp, @@ -209,7 +209,7 @@ class QueryManager //time_t dateitem; //int queryitem, // baditem; - //QString typeitem; + //TQString typeitem; //grade_t gradeitem; vector<int> lessonitems; @@ -217,7 +217,7 @@ class QueryManager // expireItems; private: - static vector<QString> userTypes; + static vector<TQString> userTypes; }; #endif // QueryManager_included |