diff --git a/src/gui/kernel/qpalette.cpp b/src/gui/kernel/qpalette.cpp index ab81012..c4cb4ff 100644 --- a/src/gui/kernel/qpalette.cpp +++ b/src/gui/kernel/qpalette.cpp @@ -535,8 +535,10 @@ void QPalette::setColorGroup(ColorGroup cg, const QColorGroup &g) \snippet doc/src/snippets/textdocument-css/main.cpp 0 + \value NoRole No role; this special role is often used to indicate that a + role has not been assigned. + \omitvalue NColorRoles - \omitvalue NoRole */ /*! diff --git a/src/gui/kernel/qpalette.h b/src/gui/kernel/qpalette.h index 1d6e73b..553dcff 100644 --- a/src/gui/kernel/qpalette.h +++ b/src/gui/kernel/qpalette.h @@ -58,7 +58,10 @@ public: Text, BrightText, ButtonText, Base, Window, Shadow, Highlight, HighlightedText, Link, LinkVisited, // ### Qt 5: remove - AlternateBase, ToolTipBase, ToolTipText, NoRole, NColorRoles = NoRole, + AlternateBase, + NoRole, // ### Qt 5: value should be 0 or -1 + ToolTipBase, ToolTipText, + NColorRoles = ToolTipText + 1, Foreground = WindowText, Background = Window // ### Qt 5: remove };