summaryrefslogtreecommitdiffstats
path: root/languages/cpp/cppcodecompletion.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
commit48d4a26399959121f33d2bc3bfe51c7827b654fc (patch)
tree5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /languages/cpp/cppcodecompletion.h
parent7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff)
downloadtdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz
tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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.