Bug 369403

Summary: No Autocomplete for calls to qt connect()
Product: [Applications] kdevelop Reporter: Ian H <master.haber>
Component: Language Support: CPP (Clang-based)Assignee: kdevelop-bugs-null
Status: CONFIRMED ---    
Severity: normal CC: mail, mickael.sergent
Priority: NOR    
Version First Reported In: 5.0.1   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ian H 2016-09-26 21:23:22 UTC
In KDevelop 4.7.3, when typing out a connect for signals/slots in qt, i would get an autocomplete for everything inside of the call, including inside of SIGNAL() and SLOT(). This does not seem to happen in 5.0.1. it seems to not understand what i'm looking for inside of the SIGNAL/SLOT macros.

Reproducible: Always

Steps to Reproduce:
1. Create a qobject with signals/slots: 
signals: 
void testSignal(double);
slots:
void testSlot(double);
2. type 'connect(this,SIGNAL()'
3.begin typing into the parenthesis in SIGNAL() 'test' 

Actual Results:  
It will only prompt for text completion, not context completion

Expected Results:  
should prompt testSignal(double), and then on the slot, it should prompt testSlot(double), like it did in 4.7.
Comment 1 Sven Brauch 2016-10-01 18:34:11 UTC
Yes, that is a missing feature in 5.0. The rationale is that the new-style signal/slot syntax which exists since Qt 5.0 is preferrable in almost all cases over the old macro-style connect(), and the new style is supported just fine.

But yes, missing feature.