diff options
Diffstat (limited to 'parts/snippet/snippetitem.h')
-rw-r--r-- | parts/snippet/snippetitem.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/parts/snippet/snippetitem.h b/parts/snippet/snippetitem.h index ac6fb416..9cfe2ccf 100644 --- a/parts/snippet/snippetitem.h +++ b/parts/snippet/snippetitem.h @@ -21,50 +21,50 @@ This class represents one CodeSnippet-Item in the listview. It also holds the needed data for one snippet. @author Robert Gruber */ -class SnippetItem : public QListViewItem { +class SnippetItem : public TQListViewItem { friend class SnippetGroup; public: - SnippetItem(QListViewItem * parent, QString name, QString text); + SnippetItem(TQListViewItem * parent, TQString name, TQString text); ~SnippetItem(); - QString getName(); - QString getText(); + TQString getName(); + TQString getText(); int getParent() { return iParent; } void resetParent(); - void setText(QString text); - void setName(QString name); - static SnippetItem * findItemByName(QString name, QPtrList<SnippetItem> &list); - static SnippetGroup * findGroupById(int id, QPtrList<SnippetItem> &list); + void setText(TQString text); + void setName(TQString name); + static SnippetItem * findItemByName(TQString name, TQPtrList<SnippetItem> &list); + static SnippetGroup * findGroupById(int id, TQPtrList<SnippetItem> &list); private: - SnippetItem(QListView * parent, QString name, QString text); - QString strName; - QString strText; + SnippetItem(TQListView * parent, TQString name, TQString text); + TQString strName; + TQString strText; int iParent; }; /** This class represents one group in the listview. It is derived from SnippetItem in order to allow storing -it in the main QPtrList<SnippetItem>. +it in the main TQPtrList<SnippetItem>. @author Robert Gruber */ class SnippetGroup : public SnippetItem { public: - SnippetGroup(QListView * parent, QString name, int id, QString lang=i18n("All")); + SnippetGroup(TQListView * parent, TQString name, int id, TQString lang=i18n("All")); ~SnippetGroup(); int getId() { return iId; } static int getMaxId() { return iMaxId; } - QString getLanguage() { return strLanguage; } + TQString getLanguage() { return strLanguage; } void setId(int id); - void setLanguage(QString lang) { strLanguage = lang; } + void setLanguage(TQString lang) { strLanguage = lang; } private: static int iMaxId; int iId; - QString strLanguage; + TQString strLanguage; }; #endif |