summaryrefslogtreecommitdiffstats
path: root/src/symbolcompletion.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/symbolcompletion.h')
-rw-r--r--src/symbolcompletion.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/symbolcompletion.h b/src/symbolcompletion.h
index 6fe57e2..f25eb91 100644
--- a/src/symbolcompletion.h
+++ b/src/symbolcompletion.h
@@ -28,8 +28,8 @@
#ifndef SYMBOLCOMPLETION_H
#define SYMBOLCOMPLETION_H
-#include <qobject.h>
-#include <qregexp.h>
+#include <ntqobject.h>
+#include <ntqregexp.h>
#include <ktexteditor/codecompletioninterface.h>
#include <ktexteditor/view.h>
#include "cscopefrontend.h"
@@ -39,7 +39,7 @@
* The results can then be displayed as symbol completion lists.
* @author Albert Yosher
*/
-class SymbolCompletion : public QObject
+class SymbolCompletion : public TQObject
{
Q_OBJECT
@@ -66,7 +66,7 @@ public:
* @param pPosInWord Set this value to the offset in the word on
* which the cursor is positioned
*/
- virtual QString getWordUnderCursor(uint* pPosInWord) = 0;
+ virtual TQString getWordUnderCursor(uint* pPosInWord) = 0;
/**
* Returns a target object for displaying the completion list.
@@ -74,10 +74,10 @@ public:
* KTextEditor::CodeCompletionInterface, or NULL if the
* implementation does not support this interface.
*/
- virtual QObject* getCCObject() = 0;
+ virtual TQObject* getCCObject() = 0;
};
- SymbolCompletion(SymbolCompletion::Interface*, QObject* pParent = 0,
+ SymbolCompletion(SymbolCompletion::Interface*, TQObject* pParent = 0,
const char* szName = 0);
~SymbolCompletion();
@@ -121,7 +121,7 @@ private:
* A sortable version of the value list used by CodeCompletionInterface.
* @author Albert Yosher
*/
- class EntryList : public QValueList<Entry>
+ class EntryList : public TQValueList<Entry>
{
public:
/**
@@ -133,8 +133,8 @@ private:
* Type casting support required for calling showCompletionBox().
* @return A casted reference to this object
*/
- operator QValueList<KTextEditor::CompletionEntry>()
- { return *(QValueList<KTextEditor::CompletionEntry>*)this; }
+ operator TQValueList<KTextEditor::CompletionEntry>()
+ { return *(TQValueList<KTextEditor::CompletionEntry>*)this; }
};
/** Editor object for which symbol completion is provided. */
@@ -142,13 +142,13 @@ private:
/** An object that supports KTextEditor::CodeCompletionInterface, as
supplied by the editor. */
- QObject* m_pCCObject;
+ TQObject* m_pCCObject;
/** Cscope process used to run completion queries. */
CscopeFrontend* m_pCscope;
/** The prefix used for the current query. */
- QString m_sPrefix;
+ TQString m_sPrefix;
/** A list of possible completions for the given prefix. */
EntryList m_elEntries;
@@ -159,17 +159,17 @@ private:
/** Regular expression for extracting a symbol out of Cscope's text field.
NOTE: This member is required due to a bug in Cscope that renders the
symbol field useless. */
- QRegExp m_reSymbol;
+ TQRegExp m_reSymbol;
/** Auto-completion timer. */
- QTimer* m_pAutoCompTimer;
+ TQTimer* m_pAutoCompTimer;
/** Auto-completion flag */
bool m_bAutoCompletion;
- void complete(const QString&, int nMaxEntries = 1000);
+ void complete(const TQString&, int nMaxEntries = 1000);
void filterEntries();
- void makeErrMsg(const QString&);
+ void makeErrMsg(const TQString&);
/** true if auto-completion is enabled, false otherwise. */
static bool s_bACEnabled;
@@ -189,7 +189,7 @@ private slots:
void slotAutoCompleteTimeout();
void slotAddEntry(FrontendToken*);
void slotQueryFinished(uint);
- void slotFilterInsert(KTextEditor::CompletionEntry*, QString*);
+ void slotFilterInsert(KTextEditor::CompletionEntry*, TQString*);
};
#endif