move application menu to own file
ClosedPublic

Authored by astippich on Feb 1 2018, 8:42 PM.

Details

Summary

small refactoring to reduce size of main qml file

Diff Detail

Repository
R255 Elisa
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
astippich requested review of this revision.Feb 1 2018, 8:42 PM
astippich created this revision.
mgallien requested changes to this revision.Feb 1 2018, 9:40 PM
mgallien added a subscriber: mgallien.

Thanks for your work.
It is probably better to directly use the context variable without redefining other variables.

src/qml/ApplicationMenu.qml
29

If I understand correctly how qml works, elisa is a context variable that you can access from everywhere. This is not needed

This revision now requires changes to proceed.Feb 1 2018, 9:40 PM
astippich updated this revision to Diff 26413.Feb 3 2018, 9:17 AM
  • use context variable directly and cleanup
mgallien accepted this revision.Feb 4 2018, 8:39 PM
This revision is now accepted and ready to land.Feb 4 2018, 8:39 PM

I had missed the following messages:
qrc:/qml/ApplicationMenu.qml:84: ReferenceError: qmlQuitAction is not defined
qrc:/qml/ApplicationMenu.qml:92: ReferenceError: qmlQuitAction is not defined

Please fix them before landing this review.

Oh sorry, deleted too much. Will fix and then land.

This revision was automatically updated to reflect the committed changes.