From 0a80cfd57d271dd44221467efb426675fa470356 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 28 Jun 2011 18:31:12 +0000 Subject: 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 --- src/modules/theme/managementdialog.h | 37 ++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) (limited to 'src/modules/theme/managementdialog.h') diff --git a/src/modules/theme/managementdialog.h b/src/modules/theme/managementdialog.h index 52ae0f86..97e47344 100644 --- a/src/modules/theme/managementdialog.h +++ b/src/modules/theme/managementdialog.h @@ -28,28 +28,28 @@ #include "kvi_pointerlist.h" #include "kvi_theme.h" -#include +#include #ifdef COMPILE_USE_QT4 -#include +#include #define KviTalSimpleRichText Q3SimpleRichText #else -#include -#define KviTalSimpleRichText QSimpleRichText +#include +#define KviTalSimpleRichText TQSimpleRichText #endif #include "kvi_tal_listbox.h" -#include +#include #include "kvi_tal_popupmenu.h" -#include +#include #include -class QLineEdit; +class TQLineEdit; class KviTalTextEdit; -class QPushButton; -class QLabel; -class QCheckBox; +class TQPushButton; +class TQLabel; +class TQCheckBox; -//class QMultiLineEdit; +//class TQMultiLineEdit; class KviDynamicToolTip; class KviStyledToolButton; @@ -67,15 +67,16 @@ public: KviThemeInfo * themeInfo(){ return m_pThemeInfo; }; virtual int height ( const KviTalListBox * lb ) const ; protected: - virtual void paint ( QPainter * painter ); + virtual void paint ( TQPainter * painter ); }; -class KviThemeManagementDialog : public QDialog +class KviThemeManagementDialog : public TQDialog { Q_OBJECT + TQ_OBJECT public: - KviThemeManagementDialog(QWidget * parent); + KviThemeManagementDialog(TQWidget * tqparent); virtual ~KviThemeManagementDialog(); protected: static KviThemeManagementDialog * m_pInstance; @@ -88,9 +89,9 @@ public: static void display(); static void cleanup(); protected: - void fillThemeBox(const QString &szDir); + void fillThemeBox(const TQString &szDir); bool hasSelectedItems(); - virtual void closeEvent(QCloseEvent * e); + virtual void closeEvent(TQCloseEvent * e); protected slots: void saveCurrentTheme(); void getMoreThemes(); @@ -102,8 +103,8 @@ protected slots: void applyTheme(KviTalListBoxItem *); void applyCurrentTheme(); void enableDisableButtons(); - void contextMenuRequested(KviTalListBoxItem * item, const QPoint & pos); - void tipRequest(KviDynamicToolTip *pTip,const QPoint &pnt); + void contextMenuRequested(KviTalListBoxItem * item, const TQPoint & pos); + void tipRequest(KviDynamicToolTip *pTip,const TQPoint &pnt); }; #endif //!_MANAGEMENTDIALOG_H_ -- cgit v1.2.1