[appmenu] Port configuration window to QQC2 and Kirigami.FormLayout
ClosedPublic

Authored by filipf on Mar 11 2019, 12:41 AM.

Details

Summary

This patch ports global menu's configuration window to QQC2 and Kirigami.FormLayout. It also changed the category icon to be consistent with other applets.

Test Plan

Before:

After:

Diff Detail

Repository
R120 Plasma Workspace
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
filipf created this revision.Mar 11 2019, 12:41 AM
Restricted Application added a project: Plasma. · View Herald TranscriptMar 11 2019, 12:41 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
filipf requested review of this revision.Mar 11 2019, 12:41 AM
filipf retitled this revision from [appmenu] Port to QQC2 and Kirigami.FormLayout to [appmenu] Port configuration window to QQC2 and Kirigami.FormLayout.Mar 11 2019, 12:43 AM
filipf edited the summary of this revision. (Show Details)
filipf edited the test plan for this revision. (Show Details)
filipf added reviewers: Plasma, VDG.
ngraham added inline comments.
applets/appmenu/package/contents/ui/configGeneral.qml
22

Is going that far actually required by anything?

27–28

Why use a top level Item? Was there a problem with using the FormLayout as the top-level object?

filipf added inline comments.Mar 11 2019, 7:30 AM
applets/appmenu/package/contents/ui/configGeneral.qml
22

Probably not but I'm always checking Qt documentation and simply using the import they recommend. Because 5.16 will depend on Qt 5.12 it shouldn't be a problem, but I can leave things as they are.

27–28

I'm seeing this consistently, properties don't work at all if placed in Kirigami.FormLayout. In this case if put there you can click on the options but the Apply button will just stay shaded.

Okay so I checked additionally and the top level Item doesn't seem necessary. I guess I copied that style by looking at the systemtray and folderview icon configuration window code, which has an Item as a top level element. Plasma is there any reason for using it or is it fine to just start off with Kirigami.FormLayout instantly?

filipf updated this revision to Diff 53823.Mar 13 2019, 7:07 PM

be conservative with imports & don't use a top-level Item

ngraham accepted this revision.Mar 13 2019, 8:34 PM
This revision is now accepted and ready to land.Mar 13 2019, 8:34 PM
This revision was automatically updated to reflect the committed changes.