Merge lp:~thomas-voss/unity-mir/qt-no-keywords into lp:unity-mir

Proposed by Thomas Voß
Status: Merged
Approved by: Gerry Boland
Approved revision: 185
Merged at revision: 194
Proposed branch: lp:~thomas-voss/unity-mir/qt-no-keywords
Merge into: lp:unity-mir
Diff against target: 73 lines (+8/-5)
5 files modified
CMakeLists.txt (+3/-0)
src/modules/Unity/Application/application_manager.cpp (+2/-2)
src/modules/Unity/Application/dbuswindowstack.cpp (+1/-1)
src/modules/Unity/Application/dbuswindowstack.h (+1/-1)
tests/auto/modules/Unity/Application/main.cpp (+1/-1)
To merge this branch: bzr merge lp:~thomas-voss/unity-mir/qt-no-keywords
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Gerry Boland (community) Approve
Review via email: mp+209678@code.launchpad.net

Commit message

Switch to QT_NO_KEYWORDS and with that account for changes in process-cpp.

Description of the change

Are there any related MPs required for this MP to build/function as expected? Please list: Yes, https://code.launchpad.net/~thomas-voss/process-cpp/add_death_observer_for_child_processes/+merge/204629

Did you perform an exploratory manual test run of your code change and any related functionality? Yes, on the N4. No changes in behavior.

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

To post a comment you must log in.
Revision history for this message
Gerry Boland (gerboland) wrote :

Looks good, thanks

• 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.
Was fine

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2014-02-14 15:42:49 +0000
3+++ CMakeLists.txt 2014-03-06 13:37:13 +0000
4@@ -32,6 +32,9 @@
5 add_definitions(-DQT_NO_DEBUG)
6 endif()
7
8+# Disable Qt keywords
9+add_definitions(-DQT_NO_KEYWORDS)
10+
11 #####################################################################
12 # Enable code coverage calculation with gcov/gcovr/lcov
13 # Usage:
14
15=== modified file 'src/modules/Unity/Application/application_manager.cpp'
16--- src/modules/Unity/Application/application_manager.cpp 2014-02-11 09:47:56 +0000
17+++ src/modules/Unity/Application/application_manager.cpp 2014-03-06 13:37:13 +0000
18@@ -761,7 +761,7 @@
19 beginInsertRows(QModelIndex(), m_applications.size(), m_applications.size());
20 m_applications.append(application);
21 endInsertRows();
22- emit countChanged();
23+ Q_EMIT countChanged();
24 }
25
26 void ApplicationManager::remove(Application *application)
27@@ -774,7 +774,7 @@
28 beginRemoveRows(QModelIndex(), i, i);
29 m_applications.removeAt(i);
30 endRemoveRows();
31- emit countChanged();
32+ Q_EMIT countChanged();
33 }
34 }
35
36
37=== modified file 'src/modules/Unity/Application/dbuswindowstack.cpp'
38--- src/modules/Unity/Application/dbuswindowstack.cpp 2013-10-09 09:02:23 +0000
39+++ src/modules/Unity/Application/dbuswindowstack.cpp 2014-03-06 13:37:13 +0000
40@@ -57,7 +57,7 @@
41 QList<WindowInfo> res;
42 ApplicationManager *appMgr = static_cast<ApplicationManager*>(parent());
43 const QList<Application*> &applications = appMgr->list();
44- foreach(Application* app, applications) {
45+ for(Application* app : applications) {
46 WindowInfo wi;
47 wi.window_id = 0;
48 wi.app_id = app->appId();
49
50=== modified file 'src/modules/Unity/Application/dbuswindowstack.h'
51--- src/modules/Unity/Application/dbuswindowstack.h 2014-01-09 08:40:51 +0000
52+++ src/modules/Unity/Application/dbuswindowstack.h 2014-03-06 13:37:13 +0000
53@@ -56,7 +56,7 @@
54 Q_INVOKABLE Q_SCRIPTABLE QList<WindowInfo> GetWindowStack();
55 Q_INVOKABLE Q_SCRIPTABLE QStringList GetWindowProperties(unsigned int window_id, const QString &app_id, const QStringList &names);
56
57-signals:
58+Q_SIGNALS:
59 void FocusedWindowChanged(unsigned int window_id, const QString &app_id, unsigned int stage);
60 void WindowCreated(unsigned int window_id, const QString &app_id);
61 void WindowDestroyed(unsigned int window_id, const QString &app_id);
62
63=== modified file 'tests/auto/modules/Unity/Application/main.cpp'
64--- tests/auto/modules/Unity/Application/main.cpp 2014-01-27 11:29:44 +0000
65+++ tests/auto/modules/Unity/Application/main.cpp 2014-03-06 13:37:13 +0000
66@@ -38,7 +38,7 @@
67 class ApplicationManagerTests: public QObject
68 {
69 Q_OBJECT
70-private slots:
71+private Q_SLOTS:
72 void testStartStop();
73 };
74

Subscribers

People subscribed via source and target branches