diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kmail/snippetitem.h | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/snippetitem.h')
-rw-r--r-- | kmail/snippetitem.h | 32 |
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; } |