diff options
author | Timothy Pearson <[email protected]> | 2013-02-04 14:16:27 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-02-04 14:16:27 -0600 |
commit | 580d345952faf597f69347256e0ad3411725988a (patch) | |
tree | ff47470421577a3e0e9f387b324e184e4d008d53 /kiconedit/knew.h | |
parent | 81576b133797828eaca3ac819f4adca21de8d327 (diff) | |
download | tdegraphics-580d345952faf597f69347256e0ad3411725988a.tar.gz tdegraphics-580d345952faf597f69347256e0ad3411725988a.zip |
Rename KIcon to enhance compatibility with KDE4
Diffstat (limited to 'kiconedit/knew.h')
-rw-r--r-- | kiconedit/knew.h | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/kiconedit/knew.h b/kiconedit/knew.h index a28f1c4e..faae9684 100644 --- a/kiconedit/knew.h +++ b/kiconedit/knew.h @@ -30,26 +30,26 @@ #include "kresize.h" -class KIconListBox; -class KIconTemplateContainer; +class TDEIconListBox; +class TDEIconTemplateContainer; class TQButtonGroup; class TQRadioButton; class TQGroupBox; -struct KIconTemplate +struct TDEIconTemplate { TQString path; TQString title; }; -class KIconListBoxItem : public TQListBoxItem +class TDEIconListBoxItem : public TQListBoxItem { public: - KIconListBoxItem( KIconTemplate ); + TDEIconListBoxItem( TDEIconTemplate ); const TQString path() { return icontemplate.path; } - KIconTemplate& iconTemplate() { return icontemplate; } + TDEIconTemplate& iconTemplate() { return icontemplate; } void reloadIcon(); protected: @@ -58,40 +58,40 @@ protected: virtual int width( const TQListBox * ) const; private: TQPixmap pm; - KIconTemplate icontemplate; + TDEIconTemplate icontemplate; }; -class KIconListBox : public TQListBox +class TDEIconListBox : public TQListBox { Q_OBJECT public: - KIconListBox( TQWidget *parent ) : TQListBox(parent) {} ; - const TQString path(int idx) { return ((KIconListBoxItem*)item(idx))->path(); } - KIconTemplate& iconTemplate(int idx) { return ((KIconListBoxItem*)item(idx))->iconTemplate(); } + TDEIconListBox( TQWidget *parent ) : TQListBox(parent) {} ; + const TQString path(int idx) { return ((TDEIconListBoxItem*)item(idx))->path(); } + TDEIconTemplate& iconTemplate(int idx) { return ((TDEIconListBoxItem*)item(idx))->iconTemplate(); } }; -class KIconTemplateContainer : public TQValueList<KIconTemplate> +class TDEIconTemplateContainer : public TQValueList<TDEIconTemplate> { public: - static KIconTemplateContainer* self() + static TDEIconTemplateContainer* self() { if (!instance) - instance = new KIconTemplateContainer; + instance = new TDEIconTemplateContainer; return instance; } void save(); private: - static KIconTemplateContainer* instance; + static TDEIconTemplateContainer* instance; - const KIconTemplateContainer operator = (const KIconTemplateContainer&); - KIconTemplateContainer(const KIconTemplateContainer&); + const TDEIconTemplateContainer operator = (const TDEIconTemplateContainer&); + TDEIconTemplateContainer(const TDEIconTemplateContainer&); - KIconTemplateContainer(); - ~KIconTemplateContainer(); + TDEIconTemplateContainer(); + ~TDEIconTemplateContainer(); }; class NewSelect : public TQWidget @@ -128,7 +128,7 @@ public slots: void checkSelection(int); protected: - KIconListBox *templates; + TDEIconListBox *templates; KWizard *wiz; TQGroupBox *grp; }; |