diff options
Diffstat (limited to 'src/knowitlinks.cpp')
-rw-r--r-- | src/knowitlinks.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/knowitlinks.cpp b/src/knowitlinks.cpp index daab0bb..819fa3f 100644 --- a/src/knowitlinks.cpp +++ b/src/knowitlinks.cpp @@ -16,21 +16,21 @@ ***************************************************************************/ #include "knowitlinks.h" -#include <qevent.h> +#include <tqevent.h> #include <kurldrag.h> -KnowitLinks::KnowitLinks(QWidget* parent, const char* name) - : KListBox(parent, name) +KnowitLinks::KnowitLinks(TQWidget* tqparent, const char* name) + : KListBox(tqparent, name) { setAcceptDrops(true); } -void KnowitLinks::dragEnterEvent(QDragEnterEvent* event) +void KnowitLinks::dragEnterEvent(TQDragEnterEvent* event) { event->accept(KURLDrag::canDecode(event)); } -void KnowitLinks::dropEvent(QDropEvent* event) +void KnowitLinks::dropEvent(TQDropEvent* event) { if (KURLDrag::canDecode(event)) { KURL::List L; @@ -40,15 +40,15 @@ void KnowitLinks::dropEvent(QDropEvent* event) } } -void KnowitLinks::keyPressEvent(QKeyEvent* e) +void KnowitLinks::keyPressEvent(TQKeyEvent* e) { - if (currentItem() != -1 && (e->key() == Qt::Key_Enter || e->key() == Qt::Key_Return)) { + if (currentItem() != -1 && (e->key() == TQt::Key_Enter || e->key() == TQt::Key_Return)) { e->ignore(); - if ((e->state() | Qt::NoButton | Qt::Keypad) == - (Qt::NoButton | Qt::Keypad)) emit linkOpen(); + if ((e->state() | Qt::NoButton | TQt::Keypad) == + (Qt::NoButton | TQt::Keypad)) emit linkOpen(); else emit linkOpenWith(); } - else if (currentItem() != -1 && e->key() == Qt::Key_Delete) { + else if (currentItem() != -1 && e->key() == TQt::Key_Delete) { e->ignore(); emit linkRemove(); } |