diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-23 01:42:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-23 01:42:07 +0000 |
commit | a2277b6bc715464e83882b90c2a058139b8a6b54 (patch) | |
tree | ab09b14014f59b4d8e2ddd12226aa0b22e4dfc5d /kregexpeditor/qt-only/compat.h | |
parent | d3f79e04b34bd1f70a458b81b28fc8799498c8dc (diff) | |
download | tdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.tar.gz tdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.zip |
TQt4 port kdeutils
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1238125 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kregexpeditor/qt-only/compat.h')
-rw-r--r-- | kregexpeditor/qt-only/compat.h | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/kregexpeditor/qt-only/compat.h b/kregexpeditor/qt-only/compat.h index 5afa317..f09cbbf 100644 --- a/kregexpeditor/qt-only/compat.h +++ b/kregexpeditor/qt-only/compat.h @@ -29,14 +29,15 @@ TQString i18n( const TQString& a); TQString i18n( const TQString& a, const TQString& b); #define isatty(x) 0 -#define KTextBrowser QTextBrowser -#define KListBox QListBox -#define KFileDialog QFileDialog -#define KPushButton QPushButton +#define KTextBrowser TQTextBrowser +#define KListBox TQListBox +#define KFileDialog TQFileDialog +#define KPushButton TQPushButton -class KDialogBase :public QDialog +class KDialogBase :public TQDialog { Q_OBJECT + TQ_OBJECT public: enum ButtonCode {Ok = 1, Cancel, Help}; @@ -44,10 +45,10 @@ public: KDialogBase ( int dialogFace, const TQString &caption, int buttonMask, ButtonCode defaultButton, - TQWidget *parent=0, const char *name=0, bool modal=true ); + TQWidget *tqparent=0, const char *name=0, bool modal=true ); - KDialogBase( TQWidget* parent, const char* name = 0, bool modal = true, - const TQString& caption = TQString::null, + KDialogBase( TQWidget* tqparent, const char* name = 0, bool modal = true, + const TQString& caption = TQString(), int buttonMask = 0 ); void init( int buttonMask, ButtonCode /*defaultButton*/, const TQString& caption ); @@ -69,16 +70,17 @@ private: TQVBoxLayout* _layout; }; -class KMessageBox :public QMessageBox +class KMessageBox :public TQMessageBox { Q_OBJECT + TQ_OBJECT public: enum ButtonCode { Ok = 1, Cancel = 2, Yes = 3, No = 4, Continue = 5 }; - static int warningYesNo (TQWidget *parent, const TQString &text, - const TQString &caption = TQString::null ); - static int information( TQWidget* parent, const TQString& text, const TQString& caption = TQString::null, - const TQString& /*dontShowAgainName*/ = TQString::null ); - static int sorry( TQWidget* parent, const TQString& text, const TQString& caption = TQString::null ); + static int warningYesNo (TQWidget *tqparent, const TQString &text, + const TQString &caption = TQString() ); + static int information( TQWidget* tqparent, const TQString& text, const TQString& caption = TQString(), + const TQString& /*dontShowAgainName*/ = TQString() ); + static int sorry( TQWidget* tqparent, const TQString& text, const TQString& caption = TQString() ); }; #endif /* COMPAT_H */ |