Merge lp:~saviq/unity8/fix-test-notifications into lp:unity8

Proposed by Michał Sawicz
Status: Merged
Approved by: Mirco Müller
Approved revision: 1055
Merged at revision: 1064
Proposed branch: lp:~saviq/unity8/fix-test-notifications
Merge into: lp:unity8
Diff against target: 44 lines (+9/-0)
2 files modified
tests/mocks/QMenuModel/unitymenumodel.cpp (+5/-0)
tests/mocks/QMenuModel/unitymenumodel.h (+4/-0)
To merge this branch: bzr merge lp:~saviq/unity8/fix-test-notifications
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
Michael Terry Approve
Review via email: mp+227239@code.launchpad.net

Commit message

Add missing nameOwner property to mock UnityMenuModel.

Description of the change

Got introduced to the real plugin in https://code.launchpad.net/~larsu/qmenumodel/add-nameowner-property/+merge/226428

* 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?
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
Michael Terry (mterry) wrote :

Sure

 * Did you perform an exploratory manual test run of the code change and any related functionality?
 - Sure, it built fine.

 * Did CI run pass? If not, please explain why.
 - TBD

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/mocks/QMenuModel/unitymenumodel.cpp'
2--- tests/mocks/QMenuModel/unitymenumodel.cpp 2013-12-12 16:32:20 +0000
3+++ tests/mocks/QMenuModel/unitymenumodel.cpp 2014-07-17 18:14:26 +0000
4@@ -126,6 +126,11 @@
5 {
6 }
7
8+QString UnityMenuModel::nameOwner() const
9+{
10+ return QString("");
11+}
12+
13 int UnityMenuModel::rowCount(const QModelIndex&) const
14 {
15 return m_modelData.count();
16
17=== modified file 'tests/mocks/QMenuModel/unitymenumodel.h'
18--- tests/mocks/QMenuModel/unitymenumodel.h 2013-10-11 17:16:52 +0000
19+++ tests/mocks/QMenuModel/unitymenumodel.h 2014-07-17 18:14:26 +0000
20@@ -32,6 +32,7 @@
21 Q_PROPERTY(QVariantMap actions READ actions WRITE setActions NOTIFY actionsChanged)
22 Q_PROPERTY(QByteArray menuObjectPath READ menuObjectPath WRITE setMenuObjectPath NOTIFY menuObjectPathChanged)
23 Q_PROPERTY(ActionStateParser* actionStateParser READ actionStateParser WRITE setActionStateParser NOTIFY actionStateParserChanged)
24+ Q_PROPERTY(QString nameOwner READ nameOwner NOTIFY nameOwnerChanged)
25
26 public:
27 UnityMenuModel(QObject *parent = NULL);
28@@ -56,6 +57,8 @@
29 ActionStateParser* actionStateParser() const;
30 void setActionStateParser(ActionStateParser* actionStateParser);
31
32+ QString nameOwner() const;
33+
34 int rowCount(const QModelIndex &parent = QModelIndex()) const;
35 int columnCount(const QModelIndex &parent = QModelIndex()) const;
36 QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
37@@ -79,6 +82,7 @@
38 void menuObjectPathChanged();
39 void actionStateParserChanged();
40 void modelDataChanged();
41+ void nameOwnerChanged();
42
43 private:
44 QVariantMap rowData(int row) const;

Subscribers

People subscribed via source and target branches