1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00
cdt/qt
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
..
org.eclipse.cdt.qt-feature Fix version number in qt-feature 2014-01-02 14:29:50 -05:00
org.eclipse.cdt.qt.core Bug 425102 QObject::connect content assist broken 2014-01-10 10:38:13 -05:00
org.eclipse.cdt.qt.tests Bug 425102 QObject::connect content assist broken 2014-01-10 10:38:13 -05:00
org.eclipse.cdt.qt.ui Bug 422841 QtIndex API for qmlRegisterType function calls 2014-01-07 15:21:47 -05:00