From e86f8310a920cbf1ecfac955fbad05916e954693 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 30 Jun 2011 19:20:52 +0000 Subject: TQt4 port knowit This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/knowit@1238876 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/knowitedit.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/knowitedit.h') diff --git a/src/knowitedit.h b/src/knowitedit.h index f391468..d225ac6 100644 --- a/src/knowitedit.h +++ b/src/knowitedit.h @@ -21,16 +21,17 @@ class KnowitEdit : public KTextEdit { Q_OBJECT + TQ_OBJECT public: bool swapEOL; - KnowitEdit(const QString& text, const QString& context=QString::null, - QWidget* parent=0, const char* name = 0); - KnowitEdit(QWidget* parent=0, const char* name = 0); - virtual void keyPressEvent(QKeyEvent* e); - virtual void contentsDragEnterEvent(QDragEnterEvent* event); - virtual void contentsDropEvent(QDropEvent* event); + KnowitEdit(const TQString& text, const TQString& context=TQString(), + TQWidget* tqparent=0, const char* name = 0); + KnowitEdit(TQWidget* tqparent=0, const char* name = 0); + virtual void keyPressEvent(TQKeyEvent* e); + virtual void contentsDragEnterEvent(TQDragEnterEvent* event); + virtual void contentsDropEvent(TQDropEvent* event); signals: - void textDropped(const QString& s, int flags); + void textDropped(const TQString& s, int flags); }; -- cgit v1.2.1