diff options
Diffstat (limited to 'src/kbstatustip.cpp')
-rw-r--r-- | src/kbstatustip.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/kbstatustip.cpp b/src/kbstatustip.cpp index cb50edf..5cc99f6 100644 --- a/src/kbstatustip.cpp +++ b/src/kbstatustip.cpp @@ -10,25 +10,25 @@ // // -#include <qcursor.h> +#include <ntqcursor.h> #include "kbstatustip.h" -KbStatusTip::KbStatusTip(QWidget * widget) : QToolTip(widget) +KbStatusTip::KbStatusTip(TQWidget * widget) : TQToolTip(widget) { } -void KbStatusTip::maybeTip(const QPoint &) +void KbStatusTip::maybeTip(const TQPoint &) { tip(parentWidget()->rect(), "kasablanca"); } -void KbStatusTip::ShowStatus(QString msg) +void KbStatusTip::ShowStatus(TQString msg) { - if ((QCursor::pos().x() > parentWidget()->mapToGlobal(parentWidget()->pos()).x()) - && (QCursor::pos().y() > parentWidget()->mapToGlobal(parentWidget()->pos()).y()) - && (QCursor::pos().x() < (parentWidget()->mapToGlobal(parentWidget()->pos()).x() + parentWidget()->width())) - && (QCursor::pos().y() < (parentWidget()->mapToGlobal(parentWidget()->pos()).y() + parentWidget()->height()))) + if ((TQCursor::pos().x() > parentWidget()->mapToGlobal(parentWidget()->pos()).x()) + && (TQCursor::pos().y() > parentWidget()->mapToGlobal(parentWidget()->pos()).y()) + && (TQCursor::pos().x() < (parentWidget()->mapToGlobal(parentWidget()->pos()).x() + parentWidget()->width())) + && (TQCursor::pos().y() < (parentWidget()->mapToGlobal(parentWidget()->pos()).y() + parentWidget()->height()))) { tip(parentWidget()->rect(), msg); } |