D27463: KconfigXT: Add a value attribute to Enum field choices

Kevin Ottens noreply at phabricator.kde.org
Thu Mar 5 15:13:00 GMT 2020


ervin requested changes to this revision.
ervin added inline comments.
This revision now requires changes to proceed.

INLINE COMMENTS

> kcoreconfigskeleton.cpp:581
> +    // HACK for BC concerns
> +    // TODO KF6: remove KCoreConfigSkeletonPrivate::mValues and add a value field to KCoreConfigSkeleton::ItemEnum::Choice
> +    const auto inHash = d_ptr->mValues.value(name);

You mean KConfigSkeletonItemPrivate aren't you? (instead of KCoreConfigSkeletonPrivate)

> meven wrote in kcoreconfigskeleton.h:788
> I expect those to be found through grep, and I had comments in the past to put it somewhere where it could not get in documentation, in cpp guarantees this.

Well, regular comments don't go in the docs ;-)
(you need the triple slash or the double start at start of comment for it to be picked up by doxygen)

But cpp, why not.

> KConfigCommonStructs.h:60
> +
> +        QString value() const {
> +            return !val.isEmpty() ? val : name;

New line before opening curly brace please

REPOSITORY
  R237 KConfig

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

To: meven, ervin, bport, crossi, #frameworks
Cc: ngraham, davidre, kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200305/9d29dd54/attachment.html>


More information about the Kde-frameworks-devel mailing list