summaryrefslogtreecommitdiffstats
path: root/src/symbolcompletion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/symbolcompletion.cpp')
-rw-r--r--src/symbolcompletion.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/symbolcompletion.cpp b/src/symbolcompletion.cpp
index 2ec8194..e385c07 100644
--- a/src/symbolcompletion.cpp
+++ b/src/symbolcompletion.cpp
@@ -25,7 +25,7 @@
*
***************************************************************************/
-#include <qtimer.h>
+#include <ntqtimer.h>
#include <klocale.h>
#include "symbolcompletion.h"
@@ -41,14 +41,14 @@ uint SymbolCompletion::s_nACMaxEntries;
* @param szName Optional object name
*/
SymbolCompletion::SymbolCompletion(SymbolCompletion::Interface* pEditor,
- QObject* pParent, const char* szName) :
- QObject(pParent, szName),
+ TQObject* pParent, const char* szName) :
+ TQObject(pParent, szName),
m_pEditor(pEditor),
m_pCCObject(NULL)
{
// Initialise member objects
m_pCscope = new CscopeFrontend();
- m_pAutoCompTimer = new QTimer(this);
+ m_pAutoCompTimer = new TQTimer(this);
// Add entries to the completion list when they are available
connect(m_pCscope, SIGNAL(dataReady(FrontendToken*)), this,
@@ -109,7 +109,7 @@ void SymbolCompletion::initAutoCompletion(bool bEnabled, uint nMinChars,
*/
void SymbolCompletion::slotComplete()
{
- QString sSymbol;
+ TQString sSymbol;
uint nPosInWord;
// Read the symbol currently under the cursor
@@ -138,7 +138,7 @@ void SymbolCompletion::slotAutoComplete()
* @param sPrefix The symbol to complete
* @param nMaxEntries The maximal number of entries to display
*/
-void SymbolCompletion::complete(const QString& sPrefix, int nMaxEntries)
+void SymbolCompletion::complete(const TQString& sPrefix, int nMaxEntries)
{
// Create a regular expression to extract symbol names from the query
// results
@@ -186,7 +186,7 @@ void SymbolCompletion::filterEntries()
* message.
* @param sMsg The text of the message to include in the list.
*/
-void SymbolCompletion::makeErrMsg(const QString& sMsg)
+void SymbolCompletion::makeErrMsg(const TQString& sMsg)
{
Entry entry;
@@ -211,7 +211,7 @@ void SymbolCompletion::makeErrMsg(const QString& sMsg)
void SymbolCompletion::slotAddEntry(FrontendToken* pToken)
{
Entry entry;
- QString sText;
+ TQString sText;
// Do not add entries beyond the requested limit
if (m_elEntries.count() > m_nMaxEntries)
@@ -242,7 +242,7 @@ void SymbolCompletion::slotQueryFinished(uint /* nRecords */)
KTextEditor::CodeCompletionInterface* pCCI;
uint nEntryCount;
EntryList::Iterator itr;
- QString sPrevText;
+ TQString sPrevText;
// Get the number of entries
nEntryCount = m_elEntries.count();
@@ -262,9 +262,9 @@ void SymbolCompletion::slotQueryFinished(uint /* nRecords */)
// Insert the correct part of the completed symbol, when chosen by the
// user
connect(m_pCCObject,
- SIGNAL(filterInsertString(KTextEditor::CompletionEntry*, QString*)),
+ SIGNAL(filterInsertString(KTextEditor::CompletionEntry*, TQString*)),
this,
- SLOT(slotFilterInsert(KTextEditor::CompletionEntry*, QString*)));
+ SLOT(slotFilterInsert(KTextEditor::CompletionEntry*, TQString*)));
// Check the number of entries in the list
if (nEntryCount == 0) {
@@ -303,7 +303,7 @@ void SymbolCompletion::slotQueryFinished(uint /* nRecords */)
* @param pTextToInsert Contains the string to insert, upon return
*/
void SymbolCompletion::slotFilterInsert(KTextEditor::CompletionEntry* pEntry,
- QString* pTextToInsert)
+ TQString* pTextToInsert)
{
// Insert the completed entry, unless it contains an error message
if (pEntry->userdata.isEmpty())
@@ -326,7 +326,7 @@ void SymbolCompletion::slotFilterInsert(KTextEditor::CompletionEntry* pEntry,
*/
void SymbolCompletion::slotAutoCompleteTimeout()
{
- QString sPrefix;
+ TQString sPrefix;
uint nPosInWord, nLength;
// Read the symbol currently under the cursor