summaryrefslogtreecommitdiffstats
path: root/src/textview.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
commit87a016680e3677da3993f333561e79eb0cead7d5 (patch)
treecbda2b4df8b8ee0d8d1617e6c75bec1e3ee0ccba /src/textview.h
parent6ce3d1ad09c1096b5ed3db334e02859e45d5c32b (diff)
downloadktechlab-87a016680e3677da3993f333561e79eb0cead7d5.tar.gz
ktechlab-87a016680e3677da3993f333561e79eb0cead7d5.zip
TQt4 port ktechlab
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1238801 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/textview.h')
-rw-r--r--src/textview.h32
1 files changed, 17 insertions, 15 deletions
diff --git a/src/textview.h b/src/textview.h
index 8903843..604b52b 100644
--- a/src/textview.h
+++ b/src/textview.h
@@ -15,10 +15,10 @@
#include "view.h"
#include <kate/view.h>
-#include <qguardedptr.h>
-#include <qlabel.h>
+#include <tqguardedptr.h>
+#include <tqlabel.h>
-class QMouseEvent;
+class TQMouseEvent;
class RegisterInfo;
class TextDocument;
class TextView;
@@ -31,6 +31,7 @@ class VariableLabel;
class TextView : public View
{
Q_OBJECT
+ TQ_OBJECT
public:
TextView( TextDocument *textDocument, ViewContainer *viewContainer, uint viewAreaId, const char *name = 0 );
~TextView();
@@ -78,7 +79,7 @@ class TextView : public View
void slotInitDebugActions();
protected slots:
- void slotWordHoveredOver( const QString & word, int line, int col );
+ void slotWordHoveredOver( const TQString & word, int line, int col );
void slotWordUnhovered();
protected:
@@ -100,13 +101,14 @@ over (used in the debugger).
@author David Saxton
*/
-class TextViewEventFilter : public QObject
+class TextViewEventFilter : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
TextViewEventFilter( TextView * textView );
- bool eventFilter( QObject * watched, QEvent * e );
+ bool eventFilter( TQObject * watched, TQEvent * e );
signals:
/**
@@ -115,14 +117,14 @@ class TextViewEventFilter : public QObject
* mouse, etc, this mode is left. During the mode, any word that is
* under the mouse cursor will be emitted as hoveredOver( word ).
*/
- void wordHoveredOver( const QString & word, int line, int col );
+ void wordHoveredOver( const TQString & word, int line, int col );
/**
* Emitted when focus is lost, the mouse moves to a different word, etc.
*/
void wordUnhovered();
protected slots:
- void slotNeedTextHint( int line, int col, QString & text );
+ void slotNeedTextHint( int line, int col, TQString & text );
/**
* Called when we are not in hover mode, but the user has had his mouse
* in the same position for some time.
@@ -139,7 +141,7 @@ class TextViewEventFilter : public QObject
void slotNoWordTimeout();
protected:
- enum HoverStatus
+ enum HovertqStatus
{
/**
* We are currently hovering - wordHoveredOver was emitted, and
@@ -162,29 +164,29 @@ class TextViewEventFilter : public QObject
* Starts / stops timers, emits signals, etc. See other functions for an
* idea of what this does.
*/
- void updateHovering( const QString & currentWord, int line, int col );
+ void updateHovering( const TQString & currentWord, int line, int col );
/**
* Started when the user moves his mouse over a word, and we are in
* Sleeping mode. Reset when the user moves his mouse, etc.
*/
- QTimer * m_pHoverTimer;
+ TQTimer * m_pHoverTimer;
/**
* Started when a word is unhovered. When this timeouts, we will go to
* Sleeping mode.
*/
- QTimer * m_pSleepTimer;
+ TQTimer * m_pSleepTimer;
/**
* Activated by the user moving the mouse. Reset by a call to
* slotNeedTextHint. This timer is needed as KateViewInternal doesn't
* bother updating us if the mouse cursor isn't over text.
*/
- QTimer * m_pNoWordTimer;
+ TQTimer * m_pNoWordTimer;
TextView * m_pTextView;
- QString m_lastWord;
+ TQString m_lastWord;
int m_lastLine;
int m_lastCol;
- HoverStatus m_hoverStatus;
+ HovertqStatus m_hovertqStatus;
};
#endif