This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 239100 - Qt Signal/Slot autocompletion in connecting signals to slots
Summary: Qt Signal/Slot autocompletion in connecting signals to slots
Status: REOPENED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 7.4
Hardware: PC Linux
: P2 normal with 2 votes (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-04 06:02 UTC by sarigalin
Modified: 2013-12-09 14:26 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sarigalin 2013-12-04 06:02:30 UTC
Netbeans 7.4 cannot list signals and slots in "connect" statements. Qt creator do this perfectly.
If you type:
Q_Object::connect(object1, SIGNAL())
Autocomplete cannot show the list of signals associate with object1.
This situation also is true for SLOT().
Comment 1 Alexander Simon 2013-12-04 08:12:48 UTC
Please provide more info:
- where do you invoke code completion
- what do you expect in the completion list
Comment 2 sarigalin 2013-12-04 08:27:22 UTC
(In reply to Alexander Simon from comment #1)
> Please provide more info:
> - where do you invoke code completion
> - what do you expect in the completion list

in qt projects and every cpp file, when you  want to have this statement:

QObject::connect(
a, SIGNAL(textChanged(const QString&)),
b, SLOT(setText(const QString&)) );

I expect after "SIGNAL(", code completion offer list of signals that can be emitted from object "a".
and also after "SLOT(", expect code completion offer list of slots which belong to object "b".

You know signals and slots of a class can be easily recognized when parsing .h files. Only Netbeans need to recognize type of objects a and b in SIGNAL and SLOT macros.
Comment 3 sarigalin 2013-12-04 09:00:02 UTC
in qt projects and every cpp file, when you  want to have this statement:

QObject::connect(
a, SIGNAL(textChanged(const QString&)),
b, SLOT(setText(const QString&)) );

I expect after "SIGNAL(", code completion offer list of signals that can be emitted from object "a".
and also after "SLOT(", expect code completion offer list of slots which belong to object "b".

You know signals and slots of a class can be easily recognized when parsing .h files. Only Netbeans need to recognize type of objects a and b in SIGNAL and SLOT macros.