diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kmail/kmfoldertree.h | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4,
however Qt3 builds are OK. Any alterations this commit makes to kdepim
behaviour under Qt3 are unintentional and should be fixed.
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/kmfoldertree.h')
-rw-r--r-- | kmail/kmfoldertree.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/kmail/kmfoldertree.h b/kmail/kmfoldertree.h index 640da9507..73704df4a 100644 --- a/kmail/kmfoldertree.h +++ b/kmail/kmfoldertree.h @@ -45,17 +45,18 @@ template <typename T> class TQGuardedPtr; class KDE_EXPORT KMFolderTreeItem : public TQObject, public KFolderTreeItem { Q_OBJECT + TQ_OBJECT public: /** Construct a root item _without_ folder */ - KMFolderTreeItem( KFolderTree *parent, const TQString & name, + KMFolderTreeItem( KFolderTree *tqparent, const TQString & name, KFolderTreeItem::Protocol protocol=KFolderTreeItem::NONE ); /** Construct a root item _with_ folder */ - KMFolderTreeItem( KFolderTree *parent, const TQString & name, + KMFolderTreeItem( KFolderTree *tqparent, const TQString & name, KMFolder* folder ); /** Construct a child item */ - KMFolderTreeItem( KFolderTreeItem* parent, const TQString & name, + KMFolderTreeItem( KFolderTreeItem* tqparent, const TQString & name, KMFolder* folder ); virtual ~KMFolderTreeItem(); @@ -67,7 +68,7 @@ public: /** associated folder */ KMFolder* folder() const { return mFolder; } - TQListViewItem* parent() const { return KFolderTreeItem::parent(); } + TQListViewItem* tqparent() const { return KFolderTreeItem::tqparent(); } /** Adjust the unread count from the folder and update the * pixmaps accordingly. */ @@ -108,16 +109,17 @@ private: class KMFolderTree : public KMail::FolderTreeBase { Q_OBJECT + TQ_OBJECT public: - KMFolderTree( KMMainWidget *mainWidget, TQWidget *parent=0, + KMFolderTree( KMMainWidget *mainWidget, TQWidget *tqparent=0, const char *name=0 ); /** Save config options */ void writeConfig(); /** Recusively add folders in a folder directory to a listview item. */ - virtual void addDirectory( KMFolderDir *fdir, KMFolderTreeItem* parent ); + virtual void addDirectory( KMFolderDir *fdir, KMFolderTreeItem* tqparent ); /** create a folderlist */ void createFolderList( TQStringList *str, @@ -165,7 +167,7 @@ public: MoveFolder }; - /** Generate a popup menu that tqcontains all folders that can have content */ + /** Generate a popup menu that contains all folders that can have content */ void folderToPopupMenu( MenuAction action, TQObject *receiver, KMMenuToFolder *, TQPopupMenu *menu, TQListViewItem *start = 0 ); @@ -224,7 +226,7 @@ public slots: void slotResetFolderList( TQListViewItem* item = 0, bool startList = true ); /** Create a child folder */ - void addChildFolder( KMFolder *folder = 0, TQWidget * parent = 0 ); + void addChildFolder( KMFolder *folder = 0, TQWidget * tqparent = 0 ); /** Copies the currently selected folder. */ void copyFolder(); |