Merge lp:~aacid/unity8/noMoveEmpty into lp:unity8

Proposed by Albert Astals Cid
Status: Merged
Approved by: Lukáš Tinkl
Approved revision: 2869
Merged at revision: 2892
Proposed branch: lp:~aacid/unity8/noMoveEmpty
Merge into: lp:unity8
Diff against target: 71 lines (+1/-13)
2 files modified
tests/mocks/Unity/Application/ApplicationManager.cpp (+0/-7)
tests/mocks/Unity/Application/ApplicationManager.h (+1/-6)
To merge this branch: bzr merge lp:~aacid/unity8/noMoveEmpty
Reviewer Review Type Date Requested Status
Lukáš Tinkl (community) Approve
Unity8 CI Bot continuous-integration Approve
Review via email: mp+320602@code.launchpad.net

Commit message

mock: Remove empty property and move invokable

They are not part of the interface

Description of the change

 * Are there any related MPs required for this MP to build/function as expected?
No, but it kind of goes together with https://code.launchpad.net/~aacid/qtmir/remove_non_interface_things/+merge/320600

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

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

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

To post a comment you must log in.
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:2869
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3488/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4605
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2785
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2785
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4633
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4460
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4460/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4460
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4460/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4460
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4460/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4460
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4460/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4460
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4460/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4460
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4460/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3488/rebuild

review: Approve (continuous-integration)
Revision history for this message
Lukáš Tinkl (lukas-kde) wrote :
Revision history for this message
Lukáš Tinkl (lukas-kde) wrote :

LGTM, makes sense, CI passing too

* 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.

Yes

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/mocks/Unity/Application/ApplicationManager.cpp'
2--- tests/mocks/Unity/Application/ApplicationManager.cpp 2017-02-24 15:43:46 +0000
3+++ tests/mocks/Unity/Application/ApplicationManager.cpp 2017-03-22 09:00:55 +0000
4@@ -172,7 +172,6 @@
5
6 endInsertRows();
7 Q_EMIT countChanged();
8- if (count() == 1) Q_EMIT emptyChanged(isEmpty()); // was empty but not anymore
9
10 return true;
11 }
12@@ -189,7 +188,6 @@
13 endRemoveRows();
14 m_modelBusy = false;
15 Q_EMIT countChanged();
16- if (isEmpty()) Q_EMIT emptyChanged(isEmpty());
17 DEBUG_MSG(application->appId() << " after: " << qPrintable(toString()));
18 }
19 }
20@@ -502,11 +500,6 @@
21 return appIds;
22 }
23
24-bool ApplicationManager::isEmpty() const
25-{
26- return m_runningApplications.isEmpty();
27-}
28-
29 ApplicationInfo *ApplicationManager::findApplication(MirSurface* surface)
30 {
31 for (ApplicationInfo *app : m_runningApplications) {
32
33=== modified file 'tests/mocks/Unity/Application/ApplicationManager.h'
34--- tests/mocks/Unity/Application/ApplicationManager.h 2016-12-07 11:19:17 +0000
35+++ tests/mocks/Unity/Application/ApplicationManager.h 2017-03-22 09:00:55 +0000
36@@ -40,7 +40,6 @@
37 class ApplicationManager : public ApplicationManagerInterface {
38 Q_OBJECT
39
40- Q_PROPERTY(bool empty READ isEmpty NOTIFY emptyChanged)
41 Q_PROPERTY(QStringList availableApplications READ availableApplications NOTIFY availableApplicationsChanged)
42
43 public:
44@@ -56,8 +55,6 @@
45 Q_INVOKABLE ApplicationInfo *findApplication(const QString &appId) const override;
46 unity::shell::application::ApplicationInfoInterface *findApplicationWithSurface(unity::shell::application::MirSurfaceInterface* surface) const override;
47
48- Q_INVOKABLE void move(int from, int to);
49-
50 // Application control methods
51 Q_INVOKABLE bool requestFocusApplication(const QString &appId) override;
52 Q_INVOKABLE ApplicationInfo *startApplication(const QString &appId, const QStringList &arguments = QStringList()) override;
53@@ -71,17 +68,15 @@
54
55 QModelIndex findIndex(ApplicationInfo* application);
56
57- bool isEmpty() const;
58-
59 Q_SIGNALS:
60 void focusRequested(const QString &appId);
61- void emptyChanged(bool empty);
62 void availableApplicationsChanged(QStringList list);
63
64 private Q_SLOTS:
65 void raiseApp(const QString &appId);
66
67 private:
68+ void move(int from, int to);
69 bool add(ApplicationInfo *application);
70 void remove(ApplicationInfo* application);
71 void buildListOfAvailableApplications();

Subscribers

People subscribed via source and target branches