From e654398e46e37abf457b2b1122ab898d2c51c49f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:43:15 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- juk/filehandleproperties.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'juk/filehandleproperties.h') diff --git a/juk/filehandleproperties.h b/juk/filehandleproperties.h index b0b708bc..4fc31f92 100644 --- a/juk/filehandleproperties.h +++ b/juk/filehandleproperties.h @@ -14,7 +14,7 @@ #ifndef FILEHANDLEPROPERTIES_H #define FILEHANDLEPROPERTIES_H -#include +#include /* * These ugly macros make possible a property registration system that makes it @@ -30,7 +30,7 @@ { \ struct name##Property : public Property \ { \ - virtual QString value(const FileHandle &f) const \ + virtual TQString value(const FileHandle &f) const \ { \ return f.method; \ } \ @@ -45,9 +45,9 @@ { \ struct name##Property : public Property \ { \ - virtual QString value(const FileHandle &f) const \ + virtual TQString value(const FileHandle &f) const \ { \ - return QString::number(f.method); \ + return TQString::number(f.method); \ } \ static const int dummy; \ }; \ @@ -59,33 +59,33 @@ namespace FileHandleProperties { struct Property { - virtual QString value(const FileHandle &) const + virtual TQString value(const FileHandle &) const { - return QString::null; + return TQString::null; } }; - static QMap propertyMap; + static TQMap propertyMap; - static int addToPropertyMap(const QCString &name, Property *property) + static int addToPropertyMap(const TQCString &name, Property *property) { propertyMap[name] = property; return 0; } - static QString property(const FileHandle &file, const QCString &key) + static TQString property(const FileHandle &file, const TQCString &key) { - return propertyMap.contains(key) ? propertyMap[key]->value(file) : QString::null; + return propertyMap.contains(key) ? propertyMap[key]->value(file) : TQString::null; } - static QStringList properties() + static TQStringList properties() { - static QStringList l; + static TQStringList l; if(l.isEmpty()) { - QMap::ConstIterator it = propertyMap.begin(); + TQMap::ConstIterator it = propertyMap.begin(); for(; it != propertyMap.end(); ++it) - l.append(QString(it.key())); + l.append(TQString(it.key())); } return l; } -- cgit v1.2.1