From dacae0242e905268e9df9aed83f84e91b13a1749 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 24 Jul 2013 11:53:10 -0500 Subject: Convert to TDE R14 API --- src/kbstatustip.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/kbstatustip.cpp') 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 +#include #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); } -- cgit v1.2.1