diff options
Diffstat (limited to 'src/kvirc/kernel/kvi_texticonmanager.h')
-rw-r--r-- | src/kvirc/kernel/kvi_texticonmanager.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/src/kvirc/kernel/kvi_texticonmanager.h b/src/kvirc/kernel/kvi_texticonmanager.h index 5f76697c..83580146 100644 --- a/src/kvirc/kernel/kvi_texticonmanager.h +++ b/src/kvirc/kernel/kvi_texticonmanager.h @@ -27,7 +27,7 @@ #include "kvi_settings.h" -#include <qpixmap.h> +#include <tqpixmap.h> #include "kvi_pointerhashtable.h" @@ -35,46 +35,47 @@ class KVIRC_API KviTextIcon { protected: int m_iId; - QString m_szFilename; + TQString m_szFilename; public: KviTextIcon(int id) : m_iId(id) {}; - KviTextIcon(QString szFile) + KviTextIcon(TQString szFile) : m_iId(-1),m_szFilename(szFile) {}; KviTextIcon(KviTextIcon* icon); ~KviTextIcon(){}; public: int id(){ return m_iId; }; void setId(int id); - void setFilename(QString filename); - QString filename(){ return m_szFilename; }; - QPixmap * pixmap(); + void setFilename(TQString filename); + TQString filename(){ return m_szFilename; }; + TQPixmap * pixmap(); }; -class KVIRC_API KviTextIconManager : public QObject +class KVIRC_API KviTextIconManager : public TQObject { friend class KviTextIconWindow; friend class KviTextIconsOptionsWidget; Q_OBJECT + TQ_OBJECT public: KviTextIconManager(); ~KviTextIconManager(); private: - KviPointerHashTable<QString,KviTextIcon> * m_pTextIconDict; + KviPointerHashTable<TQString,KviTextIcon> * m_pTextIconDict; signals: void changed(); public: - KviPointerHashTable<QString,KviTextIcon> * textIconDict(){ return m_pTextIconDict; }; + KviPointerHashTable<TQString,KviTextIcon> * textIconDict(){ return m_pTextIconDict; }; void checkDefaultAssociations(); void clear(); - void insert(const QString &name,int id); - void insert(const QString &name,KviTextIcon& icon); - KviTextIcon * lookupTextIcon(const QString &name){ return m_pTextIconDict->find(name); }; + void insert(const TQString &name,int id); + void insert(const TQString &name,KviTextIcon& icon); + KviTextIcon * lookupTextIcon(const TQString &name){ return m_pTextIconDict->tqfind(name); }; void load(); void save(); protected: - void save(const QString &filename); - int load(const QString &filename,bool bMerge = false); + void save(const TQString &filename); + int load(const TQString &filename,bool bMerge = false); }; #ifndef _KVI_TEXTICONMANAGER_CPP_ |