summaryrefslogtreecommitdiffstats
path: root/src/kvilib/tal/kvi_tal_tooltip.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 18:31:12 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 18:31:12 +0000
commit0a80cfd57d271dd44221467efb426675fa470356 (patch)
tree6f503a31aa078eaf8fa015cf1749808529d49fc9 /src/kvilib/tal/kvi_tal_tooltip.cpp
parent3329e5a804e28ef3f5eb51d1e7affdd5a508e8f2 (diff)
downloadkvirc-0a80cfd57d271dd44221467efb426675fa470356.tar.gz
kvirc-0a80cfd57d271dd44221467efb426675fa470356.zip
TQt4 port kvirc
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1238719 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kvilib/tal/kvi_tal_tooltip.cpp')
-rw-r--r--src/kvilib/tal/kvi_tal_tooltip.cpp34
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