diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-29 00:55:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-29 00:55:34 +0000 |
commit | c4189d200e71c7ef82e9a6e34935ad225154d658 (patch) | |
tree | f7f29a1159e0402472ff2ab22617a8113f66263c /kbarcode/dstextedit.h | |
parent | 2f888b1578e65ec1bc514996eb509fcaf34462d6 (diff) | |
download | kbarcode-c4189d200e71c7ef82e9a6e34935ad225154d658.tar.gz kbarcode-c4189d200e71c7ef82e9a6e34935ad225154d658.zip |
TQt4 port kbarcode
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kbarcode@1233956 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbarcode/dstextedit.h')
-rw-r--r-- | kbarcode/dstextedit.h | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/kbarcode/dstextedit.h b/kbarcode/dstextedit.h index 15192a3..8169dc7 100644 --- a/kbarcode/dstextedit.h +++ b/kbarcode/dstextedit.h @@ -18,26 +18,19 @@ #ifndef _DS_TEXT_EDIT_H_ #define _DS_TEXT_EDIT_H_ -#include <qnamespace.h> +#include <tqnamespace.h> -#if QT_VERSION >= 0x030100 - #include <ktextedit.h> -#else - #include <qtextedit.h> -#endif +#include <ktextedit.h> -// Otherwise moc will complain -#if QT_VERSION >= 0x030100 - #define TextEditBase KTextEdit -#else - #define TextEditBase QTextEdit -#endif +// Otherwise tqmoc will complain +#define TextEditBase KTextEdit class DSTextEdit : public TextEditBase { Q_OBJECT + TQ_OBJECT public: - DSTextEdit( QWidget* parent, const char* name = 0 ); + DSTextEdit( TQWidget* tqparent, const char* name = 0 ); //virtual void moveCursor( CursorAction action, bool select ); private slots: |