Fix menu item width when the delegate is overriden

Authored by apol on Dec 10 2018, 3:45 PM.

Description

Fix menu item width when the delegate is overriden

Summary:
Have MenuItem get the width of the parent instead of needing to specify it
every time.
This fixes an issue where MenuItem is used from Kirigami.ActionsMenuItem where
it would sometimes not take the whole width. See bug.

BUG: 401792

Reviewers: Kirigami, mart

Reviewed By: Kirigami, mart

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D17484

Details

Committed
apolDec 10 2018, 3:49 PM
Reviewer
Kirigami
Differential Revision
D17484: Fix menu item width when the delegate is overriden
Parents
R858:a8ea15ff5298: Fix warnings
Branches
Unknown
Tags
Unknown