Add Q_ENUMS to QStyle's enumerations.

This makes it significantly easier to obtain debug output
for style functionality.

Task-number: QTBUG-38858
Change-Id: I19edc834a55fa369b6830abeb4697ae5e5ded995
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
Friedemann Kleint 2014-08-29 13:14:16 +02:00
parent 83dab766fc
commit def5a56b03

View File

@ -66,6 +66,9 @@ class Q_WIDGETS_EXPORT QStyle : public QObject
{
Q_OBJECT
Q_DECLARE_PRIVATE(QStyle)
Q_ENUMS(StateFlag PrimitiveElement ControlElement SubElement ComplexControl)
Q_ENUMS(SubControl PixelMetric ContentsType RequestSoftwareInputPanel StyleHint)
Q_ENUMS(StandardPixmap)
protected:
QStyle(QStylePrivate &dd);