diff options
Diffstat (limited to 'src/kvilib/tal/kvi_tal_tooltip.cpp')
-rw-r--r-- | src/kvilib/tal/kvi_tal_tooltip.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/kvilib/tal/kvi_tal_tooltip.cpp b/src/kvilib/tal/kvi_tal_tooltip.cpp index 3bd384d2..90d09631 100644 --- a/src/kvilib/tal/kvi_tal_tooltip.cpp +++ b/src/kvilib/tal/kvi_tal_tooltip.cpp @@ -25,10 +25,10 @@ #define __KVILIB__ #include "kvi_tal_tooltip.h" -#include <qevent.h> +#include <tqevent.h> -KviTalToolTipHelper::KviTalToolTipHelper(KviTalToolTip * pToolTip,QWidget * pWidget) -: QObject(pWidget) +KviTalToolTipHelper::KviTalToolTipHelper(KviTalToolTip * pToolTip,TQWidget * pWidget) +: TQObject(pWidget) { #ifdef COMPILE_USE_QT4 m_pToolTip = pToolTip; @@ -54,13 +54,13 @@ void KviTalToolTipHelper::toolTipDying() #endif } -bool KviTalToolTipHelper::eventFilter(QObject * pObject,QEvent * pEvent) +bool KviTalToolTipHelper::eventFilter(TQObject * pObject,TQEvent * pEvent) { #ifdef COMPILE_USE_QT4 - if((pEvent->type() == QEvent::ToolTip) && m_pToolTip) + if((pEvent->type() == TQEvent::ToolTip) && m_pToolTip) { - debug("TOOL TIP EVENT WITH POSITION %d,%d",((QHelpEvent *)pEvent)->pos().x(),((QHelpEvent *)pEvent)->pos().y()); - m_pToolTip->maybeTip(((QHelpEvent *)pEvent)->pos()); + debug("TOOL TIP EVENT WITH POSITION %d,%d",((TQHelpEvent *)pEvent)->pos().x(),((TQHelpEvent *)pEvent)->pos().y()); + m_pToolTip->maybeTip(((TQHelpEvent *)pEvent)->pos()); return true; } #endif @@ -68,9 +68,9 @@ bool KviTalToolTipHelper::eventFilter(QObject * pObject,QEvent * pEvent) } -KviTalToolTip::KviTalToolTip(QWidget * pParent) +KviTalToolTip::KviTalToolTip(TQWidget * pParent) #ifndef COMPILE_USE_QT4 -: QToolTip(pParent) +: TQToolTip(pParent) #endif { #ifdef COMPILE_USE_QT4 @@ -98,26 +98,26 @@ void KviTalToolTip::helperDying() #endif #ifdef COMPILE_USE_QT4 -void KviTalToolTip::add(QWidget * widget,const QString & text) +void KviTalToolTip::add(TQWidget * widget,const TQString & text) { - QToolTip::add(widget,text); + TQToolTip::add(widget,text); } -void KviTalToolTip::remove(QWidget * widget) +void KviTalToolTip::remove(TQWidget * widget) { - QToolTip::remove(widget); + TQToolTip::remove(widget); } -void KviTalToolTip::tip(const QRect & rect,const QString & text) +void KviTalToolTip::tip(const TQRect & rect,const TQString & text) { debug("TOOL TIP AT %d,%d",rect.topLeft().x(),rect.topLeft().y()); - QToolTip::showText(m_pParent->mapToGlobal(rect.topLeft()),text); + TQToolTip::showText(m_pParent->mapToGlobal(rect.topLeft()),text); } #endif -void KviTalToolTip::maybeTip(const QPoint & p) +void KviTalToolTip::maybeTip(const TQPoint & p) { - // does nothing here.. and in Qt 4.x will even fail to work + // does nothing here.. and in TQt 4.x will even fail to work } #ifndef COMPILE_ON_WINDOWS |