From a253a6998055b33fedb72943101f94342cfb55a7 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Mon, 9 Nov 2009 10:10:31 +0100 Subject: Do never offer signature autocompletion for constructor calls. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/plugins/cpptools/cppcodecompletion.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/cpptools/cppcodecompletion.h') 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 &, const CPlusPlus::LookupContext &, - int endOfExpression); + int endOfExpression, bool toolTipOnly); bool completeMember(const QList &, const CPlusPlus::LookupContext &context); -- cgit v1.2.1