diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 18:31:12 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 18:31:12 +0000 |
commit | 0a80cfd57d271dd44221467efb426675fa470356 (patch) | |
tree | 6f503a31aa078eaf8fa015cf1749808529d49fc9 /src/kvilib/tal/kvi_tal_wizard.h | |
parent | 3329e5a804e28ef3f5eb51d1e7affdd5a508e8f2 (diff) | |
download | kvirc-0a80cfd57d271dd44221467efb426675fa470356.tar.gz kvirc-0a80cfd57d271dd44221467efb426675fa470356.zip |
TQt4 port kvirc
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1238719 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kvilib/tal/kvi_tal_wizard.h')
-rw-r--r-- | src/kvilib/tal/kvi_tal_wizard.h | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/src/kvilib/tal/kvi_tal_wizard.h b/src/kvilib/tal/kvi_tal_wizard.h index f84e3555..80e0afcf 100644 --- a/src/kvilib/tal/kvi_tal_wizard.h +++ b/src/kvilib/tal/kvi_tal_wizard.h @@ -28,13 +28,13 @@ #include "kvi_settings.h" #ifdef COMPILE_USE_QT4 - #include <QDialog> + #include <TQDialog> #else - #include <qdialog.h> + #include <tqdialog.h> #endif -class QShowEvent; -class QPushButton; +class TQShowEvent; +class TQPushButton; class KviTalWizardPrivate; class KviTalWizardPageData; @@ -43,11 +43,12 @@ class KviTalWizardPageData; /// /// \brief Provides a wizard-style dialog with steps /// -class KVILIB_API KviTalWizard : public QDialog +class KVILIB_API KviTalWizard : public TQDialog { Q_OBJECT + TQ_OBJECT public: - KviTalWizard(QWidget * pParent); + KviTalWizard(TQWidget * pParent); ~KviTalWizard(); protected: KviTalWizardPrivate * m_p; @@ -58,14 +59,14 @@ public: /// Adding a page a second time is equivalent to calling /// setPageTitle() and enabling the page. /// - void addPage(QWidget * pWidget,const QString &szTitle); + void addPage(TQWidget * pWidget,const TQString &szTitle); /// /// Adds a page to the wizard with the specified title /// and in the specified position. /// Adding a page a second time is equivalent to calling /// setPageTitle() and enabling the page. /// - void insertPage(QWidget * pWidget,const QString &szTitle,int iIndex); + void insertPage(TQWidget * pWidget,const TQString &szTitle,int iIndex); /// /// Enables or disables a page. A disabled page /// is skipped when the user presses "Next" in the @@ -75,14 +76,14 @@ public: /// Returns true on success or false if the pWidget /// does not identify a page that has been added to this wizard. /// - bool setPageEnabled(QWidget * pWidget,bool bEnabled); + bool setPageEnabled(TQWidget * pWidget,bool bEnabled); /// /// Changes a page title. /// /// Returns true on success or false if the pWidget /// does not identify a page that has been added to this wizard. /// - bool setPageTitle(QWidget * pWidget,const QString &szTitle); + bool setPageTitle(TQWidget * pWidget,const TQString &szTitle); /// /// Switches the wizard to the specified page. /// Please note that this class handles page switching @@ -91,56 +92,56 @@ public: /// Returns true on success or false if the pWidget /// does not identify a page that has been added to this wizard. /// - bool setCurrentPage(QWidget * pWidget); + bool setCurrentPage(TQWidget * pWidget); /// /// Returns a pointer to the current page /// - QWidget * currentPage(); + TQWidget * currentPage(); /// /// Enables or disables the help button for the specified page. /// By default the help button is always disabled. /// - void setHelpEnabled(QWidget * pWidget,bool bEnabled); + void setHelpEnabled(TQWidget * pWidget,bool bEnabled); /// /// Enables or disables the cancel button for the specified page. /// By default the cancel button is always enabled. /// - void setCancelEnabled(QWidget * pWidget,bool bEnabled); + void setCancelEnabled(TQWidget * pWidget,bool bEnabled); /// /// Enables or disables the finish button for the specified page. /// By default the finish button is always disabled. /// - void setFinishEnabled(QWidget * pWidget,bool bEnabled); + void setFinishEnabled(TQWidget * pWidget,bool bEnabled); /// /// Enables or disables the next button for the specified page. /// By default the next button is always enabled. /// - void setNextEnabled(QWidget * pWidget,bool bEnabled); + void setNextEnabled(TQWidget * pWidget,bool bEnabled); /// /// Enables or disables the prev button for the specified page. /// By default the prev button is always enabled. /// - void setBackEnabled(QWidget * pWidget,bool bEnabled); + void setBackEnabled(TQWidget * pWidget,bool bEnabled); /// /// Returns a pointer to the cancel button displayed in the dialog. /// - QPushButton * cancelButton(); + TQPushButton * cancelButton(); /// /// Returns a pointer to the help button displayed in the dialog. /// - QPushButton * helpButton(); + TQPushButton * helpButton(); /// /// Returns a pointer to the finish button displayed in the dialog. /// - QPushButton * finishButton(); + TQPushButton * finishButton(); /// /// Returns a pointer to the next button displayed in the dialog. /// - QPushButton * nextButton(); + TQPushButton * nextButton(); /// /// Returns a pointer to the back button displayed in the dialog. /// - QPushButton * backButton(); + TQPushButton * backButton(); signals: /// /// Emitted when the help button is clicked. @@ -150,11 +151,11 @@ protected: /// /// Displays the first page if no other page is shown yet. /// - virtual void showEvent(QShowEvent * e); + virtual void showEvent(TQShowEvent * e); /// /// Handles redirects the close button to the "cancel" operation. /// - virtual void closeEvent(QCloseEvent * e); + virtual void closeEvent(TQCloseEvent * e); protected: void setCurrentPage(KviTalWizardPageData * pData); protected slots: |