Soft decouple of data structures
ClosedPublic

Authored by apol on Mar 24 2016, 2:05 PM.

Details

Summary

Make it possible to use QQC.Action with the GlobalDrawer.
Don't assume applicationWindow() is defined.

This way I can adopt it in Discover right away.

Test Plan

Discover works on the compact mode, just like it used to with
the mobile components.

Diff Detail

Repository
R169 Kirigami
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
apol updated this revision to Diff 2938.Mar 24 2016, 2:05 PM
apol retitled this revision from to Soft decouple of data structures.
apol updated this object.
apol edited the test plan for this revision. (Show Details)
mart accepted this revision.Mar 29 2016, 1:35 PM
mart edited edge metadata.

fine altough applicationWindow() is assumed in many places is existing, it's kindof an issue still not using it..

(btw, any reason you can't use an instance of ApplicationWindow ?)

i was thinking about if some of the properties that are usually accessed from there could make sense inside a singleton itself, it could make it less necessary...

This revision is now accepted and ready to land.Mar 29 2016, 1:35 PM
apol added a comment.Mar 29 2016, 2:23 PM
In D1213#23572, @mart wrote:

fine altough applicationWindow() is assumed in many places is existing, it's kindof an issue still not using it..

(btw, any reason you can't use an instance of ApplicationWindow ?)

I don't want to destroy the window and create a different one when changing from mobile to desktop.

i was thinking about if some of the properties that are usually accessed from there could make sense inside a singleton itself, it could make it less necessary...

Maybe that could help. In fact I have such a singleton in Discover as well for similar reasons.

apol updated this revision to Diff 3140.Apr 5 2016, 3:18 PM
apol edited edge metadata.
This revision was automatically updated to reflect the committed changes.