1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-05 08:46:02 +02:00
cdt/qt/org.eclipse.cdt.qt.tests
Andrew Eidsness 16083fee1e Bug 422841: Add Q_CLASSINFO to the QtIndex
Qt allows string-based key/value pairs to be inserted into QObject class
definitions.  E.g.,

    class Q : public QObject
    {
    Q_OBJECT
    Q_CLASSINFO( "key1", "value1" )
    };

The class info is accessible in the meta-object system.  See:

    http://qt-project.org/doc/qt-4.8/qmetaclassinfo.html

For more information.

This patch adds the API to access these key/value pairs from the
QtIndex.  The values are stored in a single block in the PDOM record for
the QObject.

The API returns the value for a given key if it is found in the receiver
QObject or any of its base classes.  The API returns the first such
value that is found.

This patch also adds a test case for this functionality.

Change-Id: Ie3f821a0c5f6f1347a0c0c6dafa184510ae26c29
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/19154
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
2013-12-03 09:05:53 -05:00
..
META-INF Bug 422841: Initial implementation of QtIndex 2013-11-29 14:43:41 -05:00
src/org/eclipse/cdt/qt/tests Bug 422841: Add Q_CLASSINFO to the QtIndex 2013-12-03 09:05:53 -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
pom.xml Bug 418536 - Add Qt tests to maven build. 2013-11-29 23:27:13 -05:00