Skip to content

Expose KAuthorized enum as dynamic properties to QML

This way consumers are not forced to use arbitrary strings when authorizing common restrictions/actions.

By using QQmlPropertyMap the types can be dynamically registered at runtime, this works around the issue that the enums are not defined in the KAuthorizedProxy class, but the KAuthorized namespace.

QML counterpart of kio!590 (merged)

Task: https://phabricator.kde.org/T11948

Merge request reports

Loading