1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-09 03:23:07 +02:00
cdt/qt
Andrew Eidsness 0f482a80b2 Bug 422841: Add QEnum to QtIndex
The Qt meta-object system allows C++ enums to be added as simple enums
and as flags.  There is more detail at:

    http://qt-project.org/doc/qt-4.8/qobject.html#Q_ENUMS
and http://qt-project.org/doc/qt-4.8/qflags.html

This patch adds IQEnum to the QtIndex.  IQEnums are contained in
IQObjects and therefore are accessed with the IQObject.getEnums.

An IQEnum holds its name, enumerators, and a boolean indicating whether
the instance represents a Qt flag.

A Qt flag is an enum where the enumerators are intended to be used with
bitwise operations.  The Q_DECLARE_FLAGS macro is used to introduce a
type-safe container for the flags.

This patch also adds unit tests for this new functionality.

Change-Id: If51524e93533bae82a3263f3c7973a31793a8a83
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/19147
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:02:31 -05:00
..
org.eclipse.cdt.qt-feature Fixed parent pom version to reference 2013-08-27 15:16:24 -04:00
org.eclipse.cdt.qt.core Bug 422841: Add QEnum to QtIndex 2013-12-03 09:02:31 -05:00
org.eclipse.cdt.qt.tests Bug 422841: Add QEnum to QtIndex 2013-12-03 09:02:31 -05:00
org.eclipse.cdt.qt.ui Bug 422841: Initial implementation of QtIndex 2013-11-29 14:43:41 -05:00