diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
commit | e654398e46e37abf457b2b1122ab898d2c51c49f (patch) | |
tree | d39ee6440f3c3663c3ead84a2d4cc2d034667e96 /juk/filehandleproperties.h | |
parent | e4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff) | |
download | tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'juk/filehandleproperties.h')
-rw-r--r-- | juk/filehandleproperties.h | 28 |
1 files changed, 14 insertions, 14 deletions
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 <qmap.h> +#include <tqmap.h> /* * 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<QCString, const Property *> propertyMap; + static TQMap<TQCString, const Property *> 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<QCString, const Property *>::ConstIterator it = propertyMap.begin(); + TQMap<TQCString, const Property *>::ConstIterator it = propertyMap.begin(); for(; it != propertyMap.end(); ++it) - l.append(QString(it.key())); + l.append(TQString(it.key())); } return l; } |