[Merge] lp:~nick-dedekind/qtubuntu/menuTheme into lp:qtubuntu

Nick Dedekind nick.dedekind at canonical.com
Wed Aug 24 10:30:25 UTC 2016


Righty'O

I've added a testing file to https://code.launchpad.net/~nick-dedekind/unity8/menus.
You'll need to build this because it has the server side of the menu registry, but otherwise the test file sits in isolation to any thing else.
The test file is in "qml/ApplicationMenus/Test.qml"

So:
1) Get and build deps for unity8 branch.
   lp:~unity-team/unity-api/persistent_surface_id
2) Get and build lp:~nick-dedekind/unity8/menus.
3) Start test with: QML2_IMPORT_PATH=./builddir/plugins qmlscene qml/ApplicationMenus/Test.qml

4) new term
5) mir_demo_server

6) new term
7) create a qml example with menus. (MenuAPI.qml example graciously provided by dednick http://pastebin.ubuntu.com/23084706/)
8) Build and install this qtubuntu branch
9) QT_LOGGING_RULES=ubuntu.appmenu*=true QT_QPA_PLATFORMTHEME= QT_QPA_PLATFORM=ubuntumirclient qmlscene MenuAPI.qml

Tadaa. hopefully. you should see a bunch of log output from ubuntu.appmenu, and from ubuntu.appmenu.registrar if it successfully connected to the registry.
The Test.qml should also contain a pretty printed output of the exported menus it's picked up from dbus.
-- 
https://code.launchpad.net/~nick-dedekind/qtubuntu/menuTheme/+merge/296997
Your team Ubuntu Phablet Team is subscribed to branch lp:qtubuntu.



More information about the Ubuntu-reviews mailing list