summaryrefslogtreecommitdiffstats
path: root/kxkb/kxkbconfig.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kxkb/kxkbconfig.h
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz
tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kxkb/kxkbconfig.h')
-rw-r--r--kxkb/kxkbconfig.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/kxkb/kxkbconfig.h b/kxkb/kxkbconfig.h
index df32b026c..82fe610c9 100644
--- a/kxkb/kxkbconfig.h
+++ b/kxkb/kxkbconfig.h
@@ -12,10 +12,10 @@
#ifndef KXKBCONFIG_H
#define KXKBCONFIG_H
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qptrqueue.h>
-#include <qmap.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqptrqueue.h>
+#include <tqmap.h>
/* Utility classes for per-window/per-application layout implementation
@@ -29,37 +29,37 @@ enum SwitchingPolicy {
-inline QString createPair(QString key, QString value)
+inline TQString createPair(TQString key, TQString value)
{
if( value.isEmpty() )
return key;
- return QString("%1(%2)").arg(key, value);
+ return TQString("%1(%2)").arg(key, value);
}
struct LayoutUnit {
- QString layout;
- QString variant;
- QString includeGroup;
- QString displayName;
+ TQString layout;
+ TQString variant;
+ TQString includeGroup;
+ TQString displayName;
int defaultGroup;
LayoutUnit() {}
- LayoutUnit(QString layout_, QString variant_):
+ LayoutUnit(TQString layout_, TQString variant_):
layout(layout_),
variant(variant_)
{}
- LayoutUnit(QString pair) {
+ LayoutUnit(TQString pair) {
setFromPair( pair );
}
- void setFromPair(const QString& pair) {
+ void setFromPair(const TQString& pair) {
layout = parseLayout(pair);
variant = parseVariant(pair);
}
- QString toPair() const {
+ TQString toPair() const {
return createPair(layout, variant);
}
@@ -78,8 +78,8 @@ struct LayoutUnit {
}
//private:
- static const QString parseLayout(const QString &layvar);
- static const QString parseVariant(const QString &layvar);
+ static const TQString parseLayout(const TQString &layvar);
+ static const TQString parseVariant(const TQString &layvar);
};
extern const LayoutUnit DEFAULT_LAYOUT_UNIT;
@@ -100,9 +100,9 @@ public:
bool m_stickySwitching;
int m_stickySwitchingDepth;
- QString m_model;
- QString m_options;
- QValueList<LayoutUnit> m_layouts;
+ TQString m_model;
+ TQString m_options;
+ TQValueList<LayoutUnit> m_layouts;
LayoutUnit getDefaultLayout();
@@ -110,12 +110,12 @@ public:
void save();
void setDefaults();
- QStringList getLayoutStringList(/*bool compact*/);
- static QString getDefaultDisplayName(const QString& code_);
- static QString getDefaultDisplayName(const LayoutUnit& layoutUnit, bool single=false);
+ TQStringList getLayoutStringList(/*bool compact*/);
+ static TQString getDefaultDisplayName(const TQString& code_);
+ static TQString getDefaultDisplayName(const LayoutUnit& layoutUnit, bool single=false);
private:
- static const QMap<QString, QString> parseIncludesMap(const QStringList& pairList);
+ static const TQMap<TQString, TQString> parseIncludesMap(const TQStringList& pairList);
};