Add MenuItem enabled property

Review Request #121697 - Created Dec. 27, 2014 and discarded

Information
Kai Uwe Broulik
plasma-framework
master
121698
Reviewers
plasma

This forwards the internal QAction's enabled property.

It's a bit unfornuate that you cannot use QQuickAction (aka QtControls.Action {}) for "action", only C++ QAction works.

MenuItem with "enabled" bound to things properly activates and deactivates the entry.

Issues

  • 1
  • 0
  • 0
  • 1
Description From Last Updated
this is missing a connect m_action, enabledChanged, this, enabledChanged David Edmundson David Edmundson
David Edmundson
Kai Uwe Broulik
Review request changed

Status: Discarded

Change Summary:

I totally missed that QQuickItem already has an enabled property which already works.

QAction does not have an enabledChanged signal so we cannot react to changes that occur directly to it from outside.

Loading...