1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 00:45:28 +02:00
cdt/qt/org.eclipse.cdt.qt.tests
Andrew Eidsness 030bfc50fb Bug 425102 QObject::connect content assist broken
The QObject::connect content assistant does not work when the receiver
of the function call is an implicit this.  E.g.,

class Q : public QObject { Q_OBJECT
    f()
    {
        this->connect( ... );   // works
        connect( ... );         // does not work
        QObject::connect( ... ) // does not work
    }
};

I've changed the Qt's ASTUtil.getReceiverType to navigate to the
ICPPClassType through the IScope's.  The previous implementation was
relying on the connect function call being an IASTField

I've also added a test case for this problem.

Change-Id: I96c29a9a452280068bda39a63414c50008bfad37
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/20399
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2014-01-10 10:38:13 -05:00
..
META-INF Bug 424499: Find References does not work for Qt signals and slots 2014-01-02 21:49:38 -05:00
src/org/eclipse/cdt/qt/tests Bug 425102 QObject::connect content assist broken 2014-01-10 10:38:13 -05:00
.classpath Bug 422841: Initial implementation of QtIndex 2013-11-29 14:43:41 -05:00
.project Bug 422841: Initial implementation of QtIndex 2013-11-29 14:43:41 -05:00
build.properties Bug 422841: Initial implementation of QtIndex 2013-11-29 14:43:41 -05:00
plugin.properties Fix Qt plugin's project structure 2013-12-12 11:12:13 -05:00
pom.xml Content assistant for Qt elements 2013-12-12 14:05:53 -05:00