summaryrefslogtreecommitdiffstats
path: root/languages/cpp/cppcodecompletion.h
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/cppcodecompletion.h')
-rw-r--r--languages/cpp/cppcodecompletion.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/languages/cpp/cppcodecompletion.h b/languages/cpp/cppcodecompletion.h
index 67f7b10b..4b619984 100644
--- a/languages/cpp/cppcodecompletion.h
+++ b/languages/cpp/cppcodecompletion.h
@@ -46,14 +46,15 @@
#include <tqpopupmenu.h>
class PopupTracker : public TQObject {
Q_OBJECT
+ TQ_OBJECT
public:
static PopupTracker* pt;
static uint pendingPopups;
- static TQPopupMenu* createPopup( TQWidget* parent ) {
+ static TQPopupMenu* createPopup( TQWidget* tqparent ) {
if( !pt ) pt = new PopupTracker();
- TQPopupMenu* m = new TQPopupMenu( parent );
+ TQPopupMenu* m = new TQPopupMenu( tqparent );
++pendingPopups;
connect( m, TQT_SIGNAL(destroyed()), pt, TQT_SLOT(destroyedPopup()) );
return m;
@@ -91,9 +92,10 @@ struct ExpressionInfo;
typedef KSharedPtr<SimpleTypeImpl> TypePointer;
-class CppCodeCompletion : public QObject
+class CppCodeCompletion : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
friend class SimpleType;
enum CompletionMode
@@ -187,8 +189,8 @@ private:
bool functionContains( FunctionDom f , int line, int col );
void getFunctionBody( FunctionDom f , int& line, int& col );
void selectItem( ItemDom item );
- void addTypePopups( TQPopupMenu* parent, TypeDesc d, TQString depthAdd, TQString prefix = "" );
- void addTypeClassPopups( TQPopupMenu* parent, TypeDesc d, TQString depthAdd, TQString prefix = "" );
+ void addTypePopups( TQPopupMenu* tqparent, TypeDesc d, TQString depthAdd, TQString prefix = "" );
+ void addTypeClassPopups( TQPopupMenu* tqparent, TypeDesc d, TQString depthAdd, TQString prefix = "" );
TQValueList<TQStringList> computeSignatureList( CppEvaluation::EvaluationResult function );
void integratePart( KParts::Part* part );
void setupCodeInformationRepository();
@@ -233,8 +235,8 @@ private:
void computeCompletionEntryList( SimpleType type, TQValueList<CodeCompletionEntry>& entryList, NamespaceDom scope, bool isInstance, int depth );
void computeCompletionEntryList( SimpleType type, TQValueList<CodeCompletionEntry>& entryList, const FunctionList& methods, bool isInstance, int depth );
void computeCompletionEntryList( SimpleType type, TQValueList<CodeCompletionEntry>& entryList, const VariableList& attributes, bool isInstance, int depth );
- void computeCompletionEntryList( TQString parent, SimpleType type, TQValueList<CodeCompletionEntry>& entryList, const ClassList& lst, bool isInstance, int depth );
- void computeCompletionEntryList( TQString parent, SimpleType type, TQValueList<CodeCompletionEntry>& entryList, const TypeAliasList& lst, bool isInstance, int depth );
+ void computeCompletionEntryList( TQString tqparent, SimpleType type, TQValueList<CodeCompletionEntry>& entryList, const ClassList& lst, bool isInstance, int depth );
+ void computeCompletionEntryList( TQString tqparent, SimpleType type, TQValueList<CodeCompletionEntry>& entryList, const TypeAliasList& lst, bool isInstance, int depth );
void computeCompletionEntryList( SimpleType type, TQValueList<CodeCompletionEntry>& entryList, const NamespaceList& lst, bool isInstance, int depth );
SimpleContext* computeContext( FunctionDefinitionAST* ast, int line, int col, int lineOffset, int colOffset );
@@ -266,7 +268,7 @@ private:
TQGuardedPtr<CppSupportPart> m_pSupport;
TQTimer* m_ccTimer;
TQTimer* m_showStatusTextTimer;
- TQValueList<QPair<int, TQString> > m_statusTextList;
+ TQValueList<TQPair<int, TQString> > m_statusTextList;
void fitContextItem( int nLine, int nColumn );
void needRecoveryPoints();
@@ -296,8 +298,8 @@ private:
//If more then the given count of comments were requested, all following ones will be blank.(Performance-reasons)
void setMaxComments( int count );
- TQString commentFromItem( const SimpleType& parent, const ItemDom& item );
- TQString commentFromTag( const SimpleType& parent, Tag& tag );
+ TQString commentFromItem( const SimpleType& tqparent, const ItemDom& item );
+ TQString commentFromTag( const SimpleType& tqparent, Tag& tag );
ItemDom m_cachedFromContext; ///Can be a function or a class, representing the position from where the last completion was started. Necessary as long as all imports are put into the global namespace.