D25676: Add items to ColorSet and Role enums for the total number of items

Noah Davis noreply at phabricator.kde.org
Mon Dec 2 05:15:12 GMT 2019


ndavis created this revision.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
ndavis requested review of this revision.

REVISION SUMMARY
  I noticed that QPalette had these, but KColorScheme didn't. Since there is no function to get the number of items in an enum for C++, it seems like it would be useful to have a built-in way to get the total number of items. I will make a follow up patch to reduce the amount of hardcoded values in KColorScheme.

REPOSITORY
  R265 KConfigWidgets

BRANCH
  enum-item-counts (branched from master)

REVISION DETAIL
  https://phabricator.kde.org/D25676

AFFECTED FILES
  src/kcolorscheme.h

To: ndavis
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20191202/84f355f3/attachment.html>


More information about the Kde-frameworks-devel mailing list