D13880: [KMoreTools] Reduce menu hierarchy

Dominik Haumann noreply at phabricator.kde.org
Mon Aug 13 15:16:59 BST 2018


dhaumann added a comment.


  Ok - then with minor changes, let's move this forward. Who is going to do the work? :-)

INLINE COMMENTS

> kmoretools.cpp:650
> +        if (mstruct.mainItems.isEmpty()) {
> +            createMoreMenu(mstruct, menu);
> +        } else {

This line then changes to d->createMoreMenu(...);

> kmoretools.h:664
> +     */
> +    void createMoreMenu(const KmtMenuStructure &mstruct, QMenu *parent);
> +

Please move to .cpp file behind the d-pointer.

Reasoning: We usually do not expose private functions in public interafces. This has slipped for this class in the past it seems, so for KF6, this needs to be changed anyways. But let's start now: move createMoreMenu() into the cpp file.

REPOSITORY
  R304 KNewStuff

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

To: nicolasfella, gregormi, dhaumann, ngraham
Cc: kde-frameworks-devel, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180813/50a464a8/attachment.html>


More information about the Kde-frameworks-devel mailing list