summaryrefslogtreecommitdiffstats
path: root/kmail/snippetitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/snippetitem.h')
-rw-r--r--kmail/snippetitem.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/kmail/snippetitem.h b/kmail/snippetitem.h
index ce7cd1807..3c20661d5 100644
--- a/kmail/snippetitem.h
+++ b/kmail/snippetitem.h
@@ -17,7 +17,7 @@
#include <klistview.h>
#include <klocale.h>
-#include <qobject.h>
+#include <tqobject.h>
class QString;
class KAction;
@@ -29,34 +29,34 @@ This class represents one CodeSnippet-Item in the listview.
It also holds the needed data for one snippet.
@author Robert Gruber
*/
-class SnippetItem : public QObject, public QListViewItem {
+class SnippetItem : public TQObject, public TQListViewItem {
friend class SnippetGroup;
Q_OBJECT
public:
- SnippetItem(QListViewItem * parent, QString name, QString text);
+ SnippetItem(TQListViewItem * parent, TQString name, TQString text);
~SnippetItem();
- QString getName();
- QString getText();
- using QListViewItem::parent;
+ TQString getName();
+ TQString getText();
+ using TQListViewItem::parent;
int getParent() { return iParent; }
void resetParent();
- void setText(QString text);
- void setName(QString name);
+ void setText(TQString text);
+ void setName(TQString name);
void setAction( KAction* );
KAction* getAction();
- static SnippetItem * findItemByName(QString name, QPtrList<SnippetItem> &list);
- static SnippetGroup * findGroupById(int id, QPtrList<SnippetItem> &list);
+ static SnippetItem * findItemByName(TQString name, TQPtrList<SnippetItem> &list);
+ static SnippetGroup * findGroupById(int id, TQPtrList<SnippetItem> &list);
signals:
- void execute( QListViewItem * );
+ void execute( TQListViewItem * );
public slots:
void slotExecute();
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;
KAction *action;
};
@@ -64,12 +64,12 @@ private:
/**
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);
+ SnippetGroup(TQListView * parent, TQString name, int id);
~SnippetGroup();
int getId() { return iId; }