From c663b6440964f6ac48027143ac9e63298991f9d0 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:33:34 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kxkb/kxkbconfig.h | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'kxkb/kxkbconfig.h') 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 -#include -#include -#include +#include +#include +#include +#include /* 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 m_layouts; + TQString m_model; + TQString m_options; + TQValueList 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 parseIncludesMap(const QStringList& pairList); + static const TQMap parseIncludesMap(const TQStringList& pairList); }; -- cgit v1.2.1