summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppcodecompletion.h
diff options
context:
space:
mode:
authorChristian Kamm <christian.d.kamm@nokia.com>2009-11-09 10:10:31 +0100
committerChristian Kamm <christian.d.kamm@nokia.com>2009-11-09 10:13:17 +0100
commita253a6998055b33fedb72943101f94342cfb55a7 (patch)
treed7b11f9e03169ee6df39b53f4e0e8a95b34c6ce4 /src/plugins/cpptools/cppcodecompletion.h
parent5e0e97587356f938298899c26f54f7d733417be4 (diff)
downloadqt-creator-a253a6998055b33fedb72943101f94342cfb55a7.tar.gz
Do never offer signature autocompletion for constructor calls.
They should always use the function parameter tooltip. This fixes a bug where you were offered completion for C foo( -> C foo(int x) if C had a constructor taking int x. Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
Diffstat (limited to 'src/plugins/cpptools/cppcodecompletion.h')
-rw-r--r--src/plugins/cpptools/cppcodecompletion.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cppcodecompletion.h b/src/plugins/cpptools/cppcodecompletion.h
index 0b8350165e..ad77070754 100644
--- a/src/plugins/cpptools/cppcodecompletion.h
+++ b/src/plugins/cpptools/cppcodecompletion.h
@@ -115,7 +115,7 @@ private:
bool completeConstructorOrFunction(const QList<CPlusPlus::TypeOfExpression::Result> &,
const CPlusPlus::LookupContext &,
- int endOfExpression);
+ int endOfExpression, bool toolTipOnly);
bool completeMember(const QList<CPlusPlus::TypeOfExpression::Result> &,
const CPlusPlus::LookupContext &context);