From 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 13 Apr 2011 00:46:47 +0000 Subject: 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 --- kmail/kmfolderdia.h | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) (limited to 'kmail/kmfolderdia.h') diff --git a/kmail/kmfolderdia.h b/kmail/kmfolderdia.h index 31fb26d9b..a97d78b33 100644 --- a/kmail/kmfolderdia.h +++ b/kmail/kmfolderdia.h @@ -20,11 +20,11 @@ * * In addition, as a special exception, the copyright holders give * permission to link the code of this program with any edition of - * the Qt library by Trolltech AS, Norway (or with modified versions - * of Qt that use the same license as Qt), and distribute linked + * the TQt library by Trolltech AS, Norway (or with modified versions + * of TQt that use the same license as TQt), and distribute linked * combinations including the two. You must obey the GNU General * Public License in all respects for all of the code used other than - * Qt. If you modify this file, you may extend this exception to + * TQt. If you modify this file, you may extend this exception to * your version of the file, but you are not obligated to do so. If * you do not wish to do so, delete this exception statement from * your version. @@ -67,12 +67,13 @@ namespace KMail { * Feel free to rename and move this base class somewhere else if it * can be useful for other dialogs. */ -class FolderDiaTab : public QWidget +class FolderDiaTab : public TQWidget { Q_OBJECT + TQ_OBJECT public: - FolderDiaTab( TQWidget *parent=0, const char* name=0 ) - : TQWidget( parent, name ) {} + FolderDiaTab( TQWidget *tqparent=0, const char* name=0 ) + : TQWidget( tqparent, name ) {} virtual void load() = 0; @@ -82,12 +83,12 @@ public: /// @return whether save succeeded virtual bool save() = 0; - enum AccepStatus { Accepted, Canceled, Delayed }; + enum AcceptqStatus { Accepted, Canceled, Delayed }; /// Called when clicking OK. /// If a module returns Delayed, the closing is cancelled for now, /// and the module can close the dialog later on (i.e. after an async /// operation like a KIO job). - virtual AccepStatus accept() { + virtual AcceptqStatus accept() { return save() ? Accepted : Canceled; } @@ -111,11 +112,12 @@ signals: class FolderDiaGeneralTab : public FolderDiaTab { Q_OBJECT + TQ_OBJECT public: FolderDiaGeneralTab( KMFolderDialog* dlg, const TQString& aName, - TQWidget* parent, const char* name = 0 ); + TQWidget* tqparent, const char* name = 0 ); virtual void load(); virtual bool save(); @@ -162,9 +164,10 @@ private: class FolderDiaTemplatesTab : public FolderDiaTab { Q_OBJECT + TQ_OBJECT public: - FolderDiaTemplatesTab( KMFolderDialog *dlg, TQWidget *parent ); + FolderDiaTemplatesTab( KMFolderDialog *dlg, TQWidget *tqparent ); virtual void load(); virtual bool save(); @@ -196,11 +199,12 @@ private: class KMFolderDialog : public KDialogBase { Q_OBJECT + TQ_OBJECT public: KMFolderDialog( KMFolder *folder, KMFolderDir *aFolderDir, - KMFolderTree* parent, const TQString& caption, - const TQString& name = TQString::null ); + KMFolderTree* tqparent, const TQString& caption, + const TQString& name = TQString() ); KMFolder* folder() const { return mFolder; } void setFolder( KMFolder* folder ); @@ -211,7 +215,7 @@ public: KMFolderDir* folderDir() const { return mFolderDir; } typedef TQValueList > FolderList; - KMFolder* parentFolder() const { return mParentFolder; } + KMFolder* tqparentFolder() const { return mParentFolder; } KMFolderTree* folderTree() const { return mFolderTree; } -- cgit v1.2.1