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.core
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
..
.settings Added support for Qt. Extended AddFiles template to change start/end 2013-01-12 00:57:49 -05:00
META-INF Bug 422797 - API for retrieving QMake information from Qt project 2013-12-03 08:58:10 -05:00
schema Bug 422797 - API for retrieving QMake information from Qt project 2013-11-28 23:33:42 -05:00
src/org/eclipse/cdt Bug 422841: Add Q_CLASSINFO to the QtIndex 2013-12-03 09:05:53 -05:00
templates/project/helloWorld/qtQuick2 Added template process to add nature. Added Qt nature. 2013-01-17 15:27:47 -05:00
.classpath Added support for Qt. Extended AddFiles template to change start/end 2013-01-12 00:57:49 -05:00
.project Added support for Qt. Extended AddFiles template to change start/end 2013-01-12 00:57:49 -05:00
about.html Added support for Qt. Extended AddFiles template to change start/end 2013-01-12 00:57:49 -05:00
build.properties Bug 422797 - API for retrieving QMake information from Qt project 2013-11-28 23:33:42 -05:00
plugin.properties Bug 422797 - API for retrieving QMake information from Qt project 2013-11-28 23:33:42 -05:00
plugin.xml Bug 422841: Initial implementation of QtIndex 2013-11-29 14:43:41 -05:00
pom.xml Fixed parent pom version to reference 2013-08-27 15:16:24 -04:00