summaryrefslogtreecommitdiffstats
path: root/src/kvilib/tal/kvi_tal_tooltip.h
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.h
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.h')
-rw-r--r--src/kvilib/tal/kvi_tal_tooltip.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/src/kvilib/tal/kvi_tal_tooltip.h b/src/kvilib/tal/kvi_tal_tooltip.h
index 91811c3c..3c5cfb2a 100644
--- a/src/kvilib/tal/kvi_tal_tooltip.h
+++ b/src/kvilib/tal/kvi_tal_tooltip.h
@@ -27,50 +27,51 @@
#include "kvi_settings.h"
-#include <qtooltip.h>
-#include <qobject.h>
+#include <tqtooltip.h>
+#include <tqobject.h>
class KviTalToolTip;
-// This is useful only with Qt4, but we put it here anyway
-// to have both a consistent API and make moc happy
-class KviTalToolTipHelper : public QObject
+// This is useful only with TQt4, but we put it here anyway
+// to have both a consistent API and make tqmoc happy
+class KviTalToolTipHelper : public TQObject
{
friend class KviTalToolTip;
Q_OBJECT
+ TQ_OBJECT
public:
- KviTalToolTipHelper(KviTalToolTip * pToolTip,QWidget * pWidget);
+ KviTalToolTipHelper(KviTalToolTip * pToolTip,TQWidget * pWidget);
~KviTalToolTipHelper();
protected:
KviTalToolTip * m_pToolTip;
protected:
- virtual bool eventFilter(QObject * pObject,QEvent * pEvent);
+ virtual bool eventFilter(TQObject * pObject,TQEvent * pEvent);
void toolTipDying();
};
class KVILIB_API KviTalToolTip
#ifndef COMPILE_USE_QT4
- : public QToolTip
+ : public TQToolTip
#endif
{
friend class KviTalToolTipHelper;
public:
- KviTalToolTip(QWidget * pParent);
+ KviTalToolTip(TQWidget * pParent);
virtual ~KviTalToolTip();
protected:
#ifdef COMPILE_USE_QT4
KviTalToolTipHelper * m_pHelper;
- QWidget * m_pParent;
+ TQWidget * m_pParent;
#endif
public:
#ifdef COMPILE_USE_QT4
- static void add(QWidget * widget,const QString & text);
- static void remove(QWidget * widget);
- virtual void tip(const QRect & rect,const QString & text);
+ static void add(TQWidget * widget,const TQString & text);
+ static void remove(TQWidget * widget);
+ virtual void tip(const TQRect & rect,const TQString & text);
#endif
protected:
- virtual void maybeTip(const QPoint & p);
+ virtual void maybeTip(const TQPoint & p);
#ifdef COMPILE_USE_QT4
void helperDying();
#endif