summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/oblique/query.h
diff options
context:
space:
mode:
Diffstat (limited to 'noatun-plugins/oblique/query.h')
-rw-r--r--noatun-plugins/oblique/query.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/noatun-plugins/oblique/query.h b/noatun-plugins/oblique/query.h
index 60a19ff..d5835d6 100644
--- a/noatun-plugins/oblique/query.h
+++ b/noatun-plugins/oblique/query.h
@@ -6,8 +6,8 @@
#include "base.h"
-#include <qregexp.h>
-#include <qstring.h>
+#include <tqregexp.h>
+#include <tqstring.h>
class Query;
class QDomElement;
@@ -22,9 +22,9 @@ class QueryGroup
int mFuzzyness;
int mOptions;
- QString mPropertyName;
- QString mPresentation;
- QRegExp mValue;
+ TQString mPropertyName;
+ TQString mPresentation;
+ TQRegExp mValue;
public:
QueryGroup();
@@ -61,13 +61,13 @@ public:
**/
void move(Query *query, QueryGroup *under, QueryGroup *after);
- QString propertyName() const { return mPropertyName; }
- QRegExp value() const { return mValue; }
- QString presentation() const { return mPresentation; }
+ TQString propertyName() const { return mPropertyName; }
+ TQRegExp value() const { return mValue; }
+ TQString presentation() const { return mPresentation; }
- void setPropertyName(const QString &v) { mPropertyName = v; }
- void setPresentation(const QString &v) { mPresentation = v; }
- void setValue(const QRegExp &v) { mValue = v; }
+ void setPropertyName(const TQString &v) { mPropertyName = v; }
+ void setPresentation(const TQString &v) { mPresentation = v; }
+ void setValue(const TQRegExp &v) { mValue = v; }
enum Fuzzyness
{
@@ -90,14 +90,14 @@ public:
**/
bool matches(const File &file) const;
- QString presentation(const File &file) const;
+ TQString presentation(const File &file) const;
private:
/**
* apply all the "normalizing" transformations according
* to the fuzzyness
**/
- QString fuzzify(const QString &str) const;
+ TQString fuzzify(const TQString &str) const;
/**
* @returns the previous or parent of this item (slow)
**/
@@ -115,7 +115,7 @@ private:
class Query
{
QueryGroup *mGroupFirst;
- QString mName;
+ TQString mName;
public:
Query();
@@ -135,15 +135,15 @@ public:
/**
* @returns the name to be used internally
**/
- QString name() const { return mName; }
- void setName(const QString &name) { mName = name; }
+ TQString name() const { return mName; }
+ void setName(const TQString &name) { mName = name; }
/**
* @returns the name of the query
**/
- QString load(const QString &filename);
- void save(const QString &name, QDomElement &element);
- void save(const QString &name, const QString &filename);
+ TQString load(const TQString &filename);
+ void save(const TQString &name, TQDomElement &element);
+ void save(const TQString &name, const TQString &filename);
/**
* remove any trace of this from the tree, but don't actually delete it
@@ -157,18 +157,18 @@ public:
*
* Will give it a name in the db if necessary
**/
- QString dbname(Base *base);
+ TQString dbname(Base *base);
private:
- void loadGroup(QDomElement element, QueryGroup *parent=0);
- void saveGroup(QDomElement &parent, QueryGroup *group);
+ void loadGroup(TQDomElement element, QueryGroup *parent=0);
+ void saveGroup(TQDomElement &parent, QueryGroup *group);
void deepCopy(const QueryGroup *from, QueryGroup *toParent);
/**
* @returns the name of the query
**/
- QString load(QDomElement element);
+ TQString load(TQDomElement element);
};