Bug 202135

Summary: Code completion for signals and slots adds an extra parenthesis
Product: [Applications] kdevelop Reporter: Ramón Zarazúa <killerfox512>
Component: Language Support: CPP (old)Assignee: Ivan Shapovalov <intelfx>
Status: RESOLVED FIXED    
Severity: normal CC: aleixpol, kde, mail
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: A fix to test.

Description Ramón Zarazúa 2009-07-31 21:30:02 UTC
Version:            (using Devel)
Compiler:          g++ 4.3.2 
OS:                Linux
Installed from:    Compiled sources

When a connect statement is being written, and either a signal or a slot is being completed, and the user already closed the SIGNAL or SLOT macro parenthesis, code completion will add an extra one.

When writing:

 connect(emitter, SIGNAL());

After Completion:

 connect(emitter, SIGNAL(signal())));
Comment 1 Ivan Shapovalov 2012-09-15 10:14:47 UTC
*** Bug 224996 has been marked as a duplicate of this bug. ***
Comment 2 Ivan Shapovalov 2012-09-15 10:15:47 UTC
Created attachment 73928 [details]
A fix to test.
Comment 3 Aleix Pol 2013-02-27 17:35:54 UTC
Can you put the patch up in the Review Board? it will be easier for reviewing it
Comment 4 Ivan Shapovalov 2013-02-27 18:48:26 UTC
Fixed long ago, forgot to reference/close the bug...