Merge lp:~mzanetti/unity8/open-app-on-quicklist-title into lp:unity8

Proposed by Michael Zanetti
Status: Merged
Approved by: Albert Astals Cid
Approved revision: 1230
Merged at revision: 1249
Proposed branch: lp:~mzanetti/unity8/open-app-on-quicklist-title
Merge into: lp:unity8
Diff against target: 77 lines (+8/-2)
5 files modified
plugins/Unity/Launcher/CMakeLists.txt (+1/-1)
plugins/Unity/Launcher/launcheritem.cpp (+1/-0)
plugins/Unity/Launcher/launchermodel.cpp (+3/-0)
qml/Shell.qml (+2/-0)
tests/plugins/Unity/Launcher/CMakeLists.txt (+1/-1)
To merge this branch: bzr merge lp:~mzanetti/unity8/open-app-on-quicklist-title
Reviewer Review Type Date Requested Status
Albert Astals Cid (community) Approve
PS Jenkins bot (community) continuous-integration Needs Fixing
Review via email: mp+233028@code.launchpad.net

Commit message

open the application when clicking on the title entry in the quicklist

Description of the change

 * Are there any related MPs required for this MP to build/function as expected? Please list.

no

 * Did you perform an exploratory manual test run of your code change and any related functionality?

yes

 * Did you make sure that your branch does not contain spurious tags?

yes

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?

no

 * If you changed the UI, has there been a design review?

design request. see linked bug

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Albert Astals Cid (aacid) wrote :

 * Did you perform an exploratory manual test run of the code change and any related functionality?
Yes

 * Did CI run pass? If not, please explain why.
No, known broken PageHeaderLabelTest::test_popover fixed elsewhere already

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/Unity/Launcher/CMakeLists.txt'
2--- plugins/Unity/Launcher/CMakeLists.txt 2014-08-18 12:45:32 +0000
3+++ plugins/Unity/Launcher/CMakeLists.txt 2014-09-02 11:13:32 +0000
4@@ -30,6 +30,6 @@
5
6 target_link_libraries(UnityLauncher-qml ${GSETTINGS_QT_LDFLAGS})
7
8-qt5_use_modules(UnityLauncher-qml DBus Qml)
9+qt5_use_modules(UnityLauncher-qml DBus Qml Gui)
10
11 add_unity8_plugin(Unity.Launcher 0.1 Unity/Launcher TARGETS UnityLauncher-qml)
12
13=== modified file 'plugins/Unity/Launcher/launcheritem.cpp'
14--- plugins/Unity/Launcher/launcheritem.cpp 2014-06-23 10:32:58 +0000
15+++ plugins/Unity/Launcher/launcheritem.cpp 2014-09-02 11:13:32 +0000
16@@ -36,6 +36,7 @@
17 m_quickList(new QuickListModel(this))
18 {
19 QuickListEntry nameAction;
20+ nameAction.setActionId("launch_item");
21 nameAction.setText(m_name);
22 m_quickList->appendAction(nameAction);
23 QuickListEntry pinningAction;
24
25=== modified file 'plugins/Unity/Launcher/launchermodel.cpp'
26--- plugins/Unity/Launcher/launchermodel.cpp 2014-07-29 11:35:10 +0000
27+++ plugins/Unity/Launcher/launchermodel.cpp 2014-09-02 11:13:32 +0000
28@@ -23,6 +23,7 @@
29
30 #include <unity/shell/application/ApplicationInfoInterface.h>
31
32+#include <QDesktopServices>
33 #include <QDebug>
34
35 using namespace unity::shell::application;
36@@ -191,6 +192,8 @@
37 } else {
38 pin(appId);
39 }
40+ } else if (actionId == "launch_item") {
41+ QDesktopServices::openUrl(getUrlForAppId(appId));
42
43 // Nope, we don't know this action, let the backend forward it to the application
44 } else {
45
46=== modified file 'qml/Shell.qml'
47--- qml/Shell.qml 2014-08-28 20:06:18 +0000
48+++ qml/Shell.qml 2014-09-02 11:13:32 +0000
49@@ -146,6 +146,7 @@
50 lockscreen.show();
51 }
52 greeter.hide();
53+ launcher.hide();
54 }
55
56 onFocusedApplicationIdChanged: {
57@@ -164,6 +165,7 @@
58 // for an emergency call or accepted an incoming call.
59 setFakeActiveForApp(appId)
60 }
61+ launcher.hide();
62 }
63 }
64
65
66=== modified file 'tests/plugins/Unity/Launcher/CMakeLists.txt'
67--- tests/plugins/Unity/Launcher/CMakeLists.txt 2014-08-18 12:45:32 +0000
68+++ tests/plugins/Unity/Launcher/CMakeLists.txt 2014-09-02 11:13:32 +0000
69@@ -50,7 +50,7 @@
70 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/application/ApplicationInfoInterface.h
71 )
72 target_link_libraries(launchermodeltestExec ${GSETTINGS_QT_LDFLAGS})
73-qt5_use_modules(launchermodeltestExec Test Core DBus)
74+qt5_use_modules(launchermodeltestExec Test Core DBus Gui)
75
76 # copy .desktop files into build directory for shadow builds
77 file(GLOB DESKTOP_FILES *.desktop)

Subscribers

People subscribed via source and target branches