Merge lp:~bzoltan/ubuntu-ui-toolkit/OTA12-2016-05-20 into lp:ubuntu-ui-toolkit

Proposed by Zoltan Balogh on 2016-05-20
Status: Merged
Approved by: Zoltan Balogh on 2016-05-20
Approved revision: 1985
Merged at revision: 1325
Proposed branch: lp:~bzoltan/ubuntu-ui-toolkit/OTA12-2016-05-20
Merge into: lp:ubuntu-ui-toolkit
Diff against target: 1469 lines (+262/-205) (has conflicts)
72 files modified
.qmake.conf (+7/-0)
debian/changelog (+24/-0)
debian/control (+1/-1)
debian/rules (+4/-0)
debian/rules.gles (+5/-0)
src/Ubuntu/Components/1.3/PageHeadConfiguration.qdoc (+1/-0)
src/Ubuntu/Components/1.3/PageHeadSections.qml (+1/-0)
src/Ubuntu/Components/1.3/PageHeadState.qml (+1/-0)
src/Ubuntu/Components/1.3/Tab.qml (+1/-0)
src/Ubuntu/Components/1.3/TabBar.qml (+1/-0)
src/Ubuntu/Components/1.3/Tabs.qml (+7/-0)
src/Ubuntu/Components/1.3/ToolbarButton.qml (+1/-0)
src/Ubuntu/Components/1.3/ToolbarItems.qml (+1/-0)
src/Ubuntu/Components/Themes/Ambiance/1.3/PullToRefreshStyle.qml (+1/-1)
src/Ubuntu/Components/Themes/Ambiance/1.3/TextAreaStyle.qml (+2/-1)
src/Ubuntu/Components/plugin/adapters/alarmsadapter_p.h (+27/-27)
src/Ubuntu/Components/plugin/adapters/dbuspropertywatcher_p.h (+4/-4)
src/Ubuntu/Components/plugin/inversemouseareatype.h (+6/-6)
src/Ubuntu/Components/plugin/plugin.h (+2/-2)
src/Ubuntu/Components/plugin/privates/appheaderbase.h (+2/-2)
src/Ubuntu/Components/plugin/privates/frame.cpp (+4/-4)
src/Ubuntu/Components/plugin/privates/frame.h (+4/-4)
src/Ubuntu/Components/plugin/privates/listitemdragarea.h (+4/-4)
src/Ubuntu/Components/plugin/privates/ucpagewrapper.h (+1/-1)
src/Ubuntu/Components/plugin/privates/ucpagewrapperincubator_p.h (+2/-2)
src/Ubuntu/Components/plugin/quickutils.h (+1/-1)
src/Ubuntu/Components/plugin/sortfiltermodel.h (+2/-2)
src/Ubuntu/Components/plugin/ucabstractbutton.h (+5/-5)
src/Ubuntu/Components/plugin/ucaction.h (+1/-1)
src/Ubuntu/Components/plugin/ucactioncontext.h (+2/-2)
src/Ubuntu/Components/plugin/ucactionmanager.h (+2/-2)
src/Ubuntu/Components/plugin/ucalarmmodel.h (+7/-7)
src/Ubuntu/Components/plugin/ucarguments.h (+2/-2)
src/Ubuntu/Components/plugin/ucbottomedge.h (+2/-2)
src/Ubuntu/Components/plugin/ucbottomedge_p.h (+2/-2)
src/Ubuntu/Components/plugin/ucbottomedgehint.h (+6/-6)
src/Ubuntu/Components/plugin/ucbottomedgestyle.h (+1/-1)
src/Ubuntu/Components/plugin/ucheader.h (+1/-1)
src/Ubuntu/Components/plugin/ucinversemouse.h (+6/-6)
src/Ubuntu/Components/plugin/uclabel.h (+3/-3)
src/Ubuntu/Components/plugin/uclistitem.h (+12/-12)
src/Ubuntu/Components/plugin/uclistitem_p.h (+2/-2)
src/Ubuntu/Components/plugin/uclistitemstyle.h (+2/-2)
src/Ubuntu/Components/plugin/ucmainviewbase.h (+2/-2)
src/Ubuntu/Components/plugin/ucmouse.h (+2/-2)
src/Ubuntu/Components/plugin/ucpagetreenode.h (+2/-2)
src/Ubuntu/Components/plugin/ucproportionalshape.h (+1/-1)
src/Ubuntu/Components/plugin/ucscalingimageprovider.h (+1/-1)
src/Ubuntu/Components/plugin/ucserviceproperties.h (+2/-2)
src/Ubuntu/Components/plugin/ucslotslayout.h (+2/-2)
src/Ubuntu/Components/plugin/ucstyleditembase.h (+8/-8)
src/Ubuntu/Components/plugin/ucstyleditembase_p.h (+1/-1)
src/Ubuntu/Components/plugin/ucstylehints.h (+4/-4)
src/Ubuntu/Components/plugin/uctheme.h (+2/-2)
src/Ubuntu/Components/plugin/ucthemingextension.cpp (+1/-1)
src/Ubuntu/Components/plugin/ucubuntushape.h (+12/-12)
src/Ubuntu/Components/plugin/ucubuntushapeoverlay.h (+7/-7)
src/Ubuntu/Components/plugin/unitythemeiconprovider.h (+1/-1)
src/Ubuntu/Layouts/plugin/propertychanges_p.h (+9/-9)
src/Ubuntu/Layouts/plugin/ullayouts.h (+2/-2)
src/Ubuntu/Layouts/plugin/ullayouts_p.h (+2/-2)
src/Ubuntu/Layouts/plugin/ulplugin.h (+1/-1)
src/Ubuntu/PerformanceMetrics/plugin/upmcpuusage.h (+1/-1)
src/Ubuntu/PerformanceMetrics/plugin/upmplugin.h (+2/-2)
src/Ubuntu/PerformanceMetrics/plugin/upmrenderingtimes.h (+1/-1)
src/Ubuntu/PerformanceMetrics/plugin/upmtexturefromimage.h (+4/-4)
src/Ubuntu/Test/plugin/testplugin.h (+1/-1)
src/Ubuntu/UbuntuToolkit/mousetouchadaptor_p.h (+2/-2)
tests/api/Extinct/Animals/plugin/plugin.h (+2/-2)
tests/unit_x11/tst_components/tabsmodel.h (+3/-3)
tests/unit_x11/tst_components/tst_components.pro (+2/-0)
tests/unit_x11/tst_components/tst_pulltorefresh_topmargin.qml (+9/-9)
Text conflict in debian/changelog
To merge this branch: bzr merge lp:~bzoltan/ubuntu-ui-toolkit/OTA12-2016-05-20
Reviewer Review Type Date Requested Status
Ubuntu SDK team 2016-05-20 Pending
Review via email: mp+295351@code.launchpad.net

Commit Message

OTA12-2016-05-20

Description of the Change

OTA12-2016-05-20

To post a comment you must log in.
1986. By Zoltan Balogh on 2016-05-22

Disable Yakketi tests

1987. By Zoltan Balogh on 2016-05-22

Disable Yakketi tests

1988. By Zoltan Balogh on 2016-05-25

remove upstart

1989. By Zoltan Balogh on 2016-05-26

Sync with trunk

1990. By Zoltan Balogh on 2016-05-27

be selective with upstart deps

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '.qmake.conf'
2--- .qmake.conf 2015-08-13 09:20:05 +0000
3+++ .qmake.conf 2016-05-27 06:40:42 +0000
4@@ -16,3 +16,10 @@
5 exists($$PWD/../qt.pro) {
6 CONFIG += build_with_qt
7 }
8+
9+*-g++* {
10+ GCC4 = $$system( gcc -dumpversion | grep "^4.[0-9]" )
11+ if (isEmpty(GCC4)) {
12+ QMAKE_CXXFLAGS += -Wsuggest-override
13+ }
14+}
15
16=== modified file 'debian/changelog'
17--- debian/changelog 2016-05-26 10:39:18 +0000
18+++ debian/changelog 2016-05-27 06:40:42 +0000
19@@ -1,4 +1,28 @@
20+<<<<<<< TREE
21 ubuntu-ui-toolkit (1.3.1979+16.04.20160517.4) yakkety; urgency=medium
22+=======
23+ubuntu-ui-toolkit (1.3.1984+16.04) UNRELEASED; urgency=medium
24+
25+ [ Christian Dywan ]
26+ * Slimmer frame for TextFields: 0.5dp. Fixes LP: #1578190.
27+
28+ [ Albert Astals Cid ]
29+ * Add override
30+ The override specifier (since C++11) specifies that a virtual function
31+ overrides another virtual function. In a member function declaration or
32+ definition, override ensures that the function is virtual and is overriding
33+ a virtual function from the base class.
34+
35+ [ Tim Peeters ]
36+ * Fix reference error in PullToRefreshStyle. Fixes LP: #1582843
37+ * Mark Tab, Tabs, TabBar, PageHeadConfiguration, PageHeadSections,
38+ PageHeadState, ToolbarButton, ToolbarItems as deprecated in the
39+ documentation. Fixes LP: #1566735, LP: #1566741.
40+
41+ -- Zoltán Balogh <zoltan@bakter.hu> Fri, 20 May 2016 20:38:03 +0300
42+
43+ubuntu-ui-toolkit-gles (1.3.1979+16.04.20160517.4) yakkety; urgency=medium
44+>>>>>>> MERGE-SOURCE
45
46 * Rebuild for arm64 gles switch.
47
48
49=== modified file 'debian/control'
50--- debian/control 2016-04-21 13:10:34 +0000
51+++ debian/control 2016-05-27 06:40:42 +0000
52@@ -300,7 +300,7 @@
53 ubuntu-app-launch-profiler (>= ${source:Version}),
54 ubuntu-keyboard-autopilot [amd64 armhf i386],
55 ubuntu-ui-toolkit-examples (>= ${source:Version}),
56- upstart,
57+ upstart [amd64 armhf arm64 i386 ppc64 ppc64el],
58 url-dispatcher-tools,
59 ${misc:Depends},
60 ${shlibs:Depends},
61
62=== modified file 'debian/rules'
63--- debian/rules 2016-04-05 06:28:06 +0000
64+++ debian/rules 2016-05-27 06:40:42 +0000
65@@ -9,9 +9,11 @@
66 export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
67 DEB_HOST_MULTI_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)
68 DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
69+DEB_HOST_SERIES ?= $(shell lsb_release -c -s)
70
71 # Skip tests on the archs they are known to be flaky with current configuration
72 testskip_architectures := powerpc arm64 ppc64el s390x
73+testskip_series := yakkety
74
75 override_dh_auto_configure:
76 qmake -r
77@@ -20,6 +22,7 @@
78 dh $@ --parallel
79
80 override_dh_auto_test:
81+ifneq ($(DEB_HOST_SERIES),$(findstring $(DEB_HOST_SERIES), $(testskip_series)))
82 ifneq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(testskip_architectures)))
83 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
84 mkdir -p debian/tmp/home/run
85@@ -27,6 +30,7 @@
86 tests/xvfb.sh dh_auto_test || exit $?
87 endif
88 endif
89+endif
90
91 override_dh_build:
92 dh_auto_build --parallel
93
94=== modified file 'debian/rules.gles'
95--- debian/rules.gles 2016-04-06 20:16:20 +0000
96+++ debian/rules.gles 2016-05-27 06:40:42 +0000
97@@ -7,6 +7,9 @@
98 export QMAKEFEATURES=$(CURDIR)/features
99 DEB_HOST_MULTI_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)
100 DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
101+DEB_HOST_SERIES ?= $(shell lsb_release -c -s)
102+
103+testskip_series := yakkety
104
105 CONFIGURE_SWITCHES = "-r" \
106 "ROOT_SOURCE_DIR=$(CURDIR)" \
107@@ -20,11 +23,13 @@
108 #dh_auto_configure -- $(CONFIGURE_SWITCHES)
109
110 override_dh_auto_test:
111+ifneq ($(DEB_HOST_SERIES),$(findstring $(DEB_HOST_SERIES), $(testskip_series)))
112 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
113 mkdir -p debian/tmp/home/run
114 chmod +x tests/xvfb.sh
115 tests/xvfb.sh dh_auto_test || exit $?
116 endif
117+endif
118
119 override_dh_auto_install:
120 dh_auto_install --destdir=debian/tmp
121
122=== modified file 'src/Ubuntu/Components/1.3/PageHeadConfiguration.qdoc'
123--- src/Ubuntu/Components/1.3/PageHeadConfiguration.qdoc 2015-07-29 10:12:07 +0000
124+++ src/Ubuntu/Components/1.3/PageHeadConfiguration.qdoc 2016-05-27 06:40:42 +0000
125@@ -19,6 +19,7 @@
126 \inqmlmodule Ubuntu.Components 1.1
127 \ingroup ubuntu
128 \since Ubuntu.Components 1.1
129+ \deprecated
130 \brief Page.head is used to configure the header for a \l Page.
131
132 For examples how to use Page.head, see \l Page.
133
134=== modified file 'src/Ubuntu/Components/1.3/PageHeadSections.qml'
135--- src/Ubuntu/Components/1.3/PageHeadSections.qml 2015-06-23 00:18:56 +0000
136+++ src/Ubuntu/Components/1.3/PageHeadSections.qml 2016-05-27 06:40:42 +0000
137@@ -22,6 +22,7 @@
138 \inqmlmodule Ubuntu.Components 1.1
139 \ingroup ubuntu
140 \since Ubuntu.Components 1.1
141+ \deprecated
142 \brief PageHeadSections is used to configure the sections for a \l Page.
143
144 These sections will be shown in the bottom part of the header. This component does not
145
146=== modified file 'src/Ubuntu/Components/1.3/PageHeadState.qml'
147--- src/Ubuntu/Components/1.3/PageHeadState.qml 2015-05-11 12:50:00 +0000
148+++ src/Ubuntu/Components/1.3/PageHeadState.qml 2016-05-27 06:40:42 +0000
149@@ -22,6 +22,7 @@
150 \inqmlmodule Ubuntu.Components 1.1
151 \ingroup ubuntu
152 \since Ubuntu.Components 1.1
153+ \deprecated
154 \brief PageHeadState is a helper component to make it easier to
155 configure the page header when changing states.
156
157
158=== modified file 'src/Ubuntu/Components/1.3/Tab.qml'
159--- src/Ubuntu/Components/1.3/Tab.qml 2015-12-08 18:34:40 +0000
160+++ src/Ubuntu/Components/1.3/Tab.qml 2016-05-27 06:40:42 +0000
161@@ -21,6 +21,7 @@
162 \qmltype Tab
163 \inqmlmodule Ubuntu.Components 1.1
164 \ingroup ubuntu
165+ \deprecated
166 \brief Component to represent a single tab in a \l Tabs environment.
167
168 Examples: See \l Tabs.
169
170=== modified file 'src/Ubuntu/Components/1.3/TabBar.qml'
171--- src/Ubuntu/Components/1.3/TabBar.qml 2015-09-28 14:36:54 +0000
172+++ src/Ubuntu/Components/1.3/TabBar.qml 2016-05-27 06:40:42 +0000
173@@ -21,6 +21,7 @@
174 \qmltype TabBar
175 \inqmlmodule Ubuntu.Components 1.1
176 \ingroup ubuntu
177+ \deprecated
178 \brief Tab bar that will be shown in the header when \l Tabs is active.
179 This component does not need to be instantiated by the developer, it is
180 automatically created by the \l Tabs.
181
182=== modified file 'src/Ubuntu/Components/1.3/Tabs.qml'
183--- src/Ubuntu/Components/1.3/Tabs.qml 2016-05-09 09:14:44 +0000
184+++ src/Ubuntu/Components/1.3/Tabs.qml 2016-05-27 06:40:42 +0000
185@@ -21,9 +21,11 @@
186 \qmltype Tabs
187 \inqmlmodule Ubuntu.Components 1.1
188 \ingroup ubuntu
189+ \deprecated
190 \brief The Tabs class provides an environment where multible \l Tab
191 children can be added, and the user is presented with a tab
192 bar with tab buttons to select different tab pages.
193+ This component is DEPRECATED. See http://design.ubuntu.com/apps/patterns/navigation
194
195 Tabs must be placed inside a \l MainView so that it will automatically
196 have a header that shows the tabs that can be selected, and the toolbar
197@@ -147,6 +149,11 @@
198 id: tabs
199 anchors.fill: parent
200
201+ Component.onCompleted: {
202+ print("Tabs component is deprecated. " +
203+ "See http://design.ubuntu.com/apps/patterns/navigation");
204+ }
205+
206 /*!
207 \qmlproperty int selectedTabIndex
208 The index of the currently selected tab.
209
210=== modified file 'src/Ubuntu/Components/1.3/ToolbarButton.qml'
211--- src/Ubuntu/Components/1.3/ToolbarButton.qml 2016-05-03 11:19:56 +0000
212+++ src/Ubuntu/Components/1.3/ToolbarButton.qml 2016-05-27 06:40:42 +0000
213@@ -21,6 +21,7 @@
214 \qmltype ToolbarButton
215 \inqmlmodule Ubuntu.Components 1.1
216 \ingroup ubuntu
217+ \deprecated
218 \brief An \l ActionItem that represents a button in the toolbar.
219 ToolbarButtons should be included in \l ToolbarItems to define the tools of a \l Page.
220 The behavior and look of the toolbar button can be specified by setting an \l Action for
221
222=== modified file 'src/Ubuntu/Components/1.3/ToolbarItems.qml'
223--- src/Ubuntu/Components/1.3/ToolbarItems.qml 2015-04-30 08:32:44 +0000
224+++ src/Ubuntu/Components/1.3/ToolbarItems.qml 2016-05-27 06:40:42 +0000
225@@ -24,6 +24,7 @@
226 \brief Row of Items to be placed in a toolbar.
227
228 \b DEPRECATED: DO NOT USE THIS. USE \b head.actions IN \l Page INSTEAD.
229+ \deprecated
230
231 Each \l Page has a tools property that can be set to change the tools of toolbar supplied
232 by \l MainView when the \l Page is active. Each ToolbarItems consists of a set of
233
234=== modified file 'src/Ubuntu/Components/Themes/Ambiance/1.3/PullToRefreshStyle.qml'
235--- src/Ubuntu/Components/Themes/Ambiance/1.3/PullToRefreshStyle.qml 2016-05-11 21:17:26 +0000
236+++ src/Ubuntu/Components/Themes/Ambiance/1.3/PullToRefreshStyle.qml 2016-05-27 06:40:42 +0000
237@@ -143,7 +143,7 @@
238 if (visible) {
239 // Make sure the flickable is back inside its bounds when
240 // the Page becomes visible again:
241- view.returnToBounds();
242+ control.target.returnToBounds();
243 }
244 }
245
246
247=== modified file 'src/Ubuntu/Components/Themes/Ambiance/1.3/TextAreaStyle.qml'
248--- src/Ubuntu/Components/Themes/Ambiance/1.3/TextAreaStyle.qml 2016-01-28 11:54:29 +0000
249+++ src/Ubuntu/Components/Themes/Ambiance/1.3/TextAreaStyle.qml 2016-05-27 06:40:42 +0000
250@@ -72,7 +72,8 @@
251
252 UbuntuShape {
253 anchors.fill: parent
254- anchors.margins: parent.visible ? units.gu(0.2) : 0
255+ anchors.margins: parent.visible ? units.dp(0.5) : 0
256+ radius: units.gu(1.7)
257 backgroundColor: visuals.backgroundColor
258 aspect: UbuntuShape.Flat
259 }
260
261=== modified file 'src/Ubuntu/Components/plugin/adapters/alarmsadapter_p.h'
262--- src/Ubuntu/Components/plugin/adapters/alarmsadapter_p.h 2015-03-24 16:51:39 +0000
263+++ src/Ubuntu/Components/plugin/adapters/alarmsadapter_p.h 2016-05-27 06:40:42 +0000
264@@ -37,28 +37,28 @@
265 AlarmDataAdapter(UCAlarm *qq);
266 ~AlarmDataAdapter();
267
268- bool enabled() const;
269- bool setEnabled(bool enabled);
270- QDateTime date() const;
271- bool setDate(const QDateTime &date);
272- QString message() const;
273- bool setMessage(const QString &message);
274- UCAlarm::AlarmType type() const;
275- bool setType(UCAlarm::AlarmType type);
276- UCAlarm::DaysOfWeek daysOfWeek() const;
277- bool setDaysOfWeek(UCAlarm::DaysOfWeek days);
278- QUrl sound() const;
279- bool setSound(const QUrl &sound);
280- QVariant cookie() const;
281- UCAlarm::Error checkAlarm();
282+ bool enabled() const override;
283+ bool setEnabled(bool enabled) override;
284+ QDateTime date() const override;
285+ bool setDate(const QDateTime &date) override;
286+ QString message() const override;
287+ bool setMessage(const QString &message) override;
288+ UCAlarm::AlarmType type() const override;
289+ bool setType(UCAlarm::AlarmType type) override;
290+ UCAlarm::DaysOfWeek daysOfWeek() const override;
291+ bool setDaysOfWeek(UCAlarm::DaysOfWeek days) override;
292+ QUrl sound() const override;
293+ bool setSound(const QUrl &sound) override;
294+ QVariant cookie() const override;
295+ UCAlarm::Error checkAlarm() override;
296
297- void save();
298- void cancel();
299- void reset();
300+ void save() override;
301+ void cancel() override;
302+ void reset() override;
303 bool wait(int msec);
304- void completeSave();
305- void completeCancel();
306- void copyAlarmData(const UCAlarm &other);
307+ void completeSave() override;
308+ void completeCancel() override;
309+ void copyAlarmData(const UCAlarm &other) override;
310
311 // adaptation specific data
312 void adjustDowSettings(UCAlarm::AlarmType type, UCAlarm::DaysOfWeek days);
313@@ -179,17 +179,17 @@
314 QOrganizerManager *manager;
315 QOrganizerCollection collection;
316
317- void init();
318- int alarmCount();
319- UCAlarm *getAlarmAt(int index) const;
320- bool findAlarm(const UCAlarm &alarm, const QVariant &cookie) const;
321+ void init() override;
322+ int alarmCount() override;
323+ UCAlarm *getAlarmAt(int index) const override;
324+ bool findAlarm(const UCAlarm &alarm, const QVariant &cookie) const override;
325 void adjustAlarmOccurrence(AlarmDataAdapter &alarm);
326
327 void loadAlarms();
328 void saveAlarms();
329
330- bool verifyChange(UCAlarm *alarm, AlarmManager::Change change, const QVariant &value);
331- UCAlarmPrivate *createAlarmData(UCAlarm *alarm);
332+ bool verifyChange(UCAlarm *alarm, AlarmManager::Change change, const QVariant &value) override;
333+ UCAlarmPrivate *createAlarmData(UCAlarm *alarm) override;
334
335 void insertAlarm(const QOrganizerItemId &id);
336 void updateAlarm(const QOrganizerItemId &id);
337@@ -197,7 +197,7 @@
338
339 private Q_SLOTS:
340 void completeFetchAlarms();
341- bool fetchAlarms();
342+ bool fetchAlarms() override;
343 void alarmOperation(QList<QPair<QOrganizerItemId,QOrganizerManager::Operation> >);
344
345 protected:
346
347=== modified file 'src/Ubuntu/Components/plugin/adapters/dbuspropertywatcher_p.h'
348--- src/Ubuntu/Components/plugin/adapters/dbuspropertywatcher_p.h 2014-11-26 15:39:39 +0000
349+++ src/Ubuntu/Components/plugin/adapters/dbuspropertywatcher_p.h 2016-05-27 06:40:42 +0000
350@@ -32,11 +32,11 @@
351 public:
352 DBusServiceProperties(UCServiceProperties *qq);
353
354- bool init();
355- bool fetchPropertyValues();
356- bool readProperty(const QString &property);
357+ bool init() override;
358+ bool fetchPropertyValues() override;
359+ bool readProperty(const QString &property) override;
360 // for testing purposes only!!!
361- bool testProperty(const QString &property, const QVariant &value);
362+ bool testProperty(const QString &property, const QVariant &value) override;
363
364 QStringList scannedProperties;
365 QDBusConnection connection;
366
367=== modified file 'src/Ubuntu/Components/plugin/inversemouseareatype.h'
368--- src/Ubuntu/Components/plugin/inversemouseareatype.h 2014-06-18 15:24:42 +0000
369+++ src/Ubuntu/Components/plugin/inversemouseareatype.h 2016-05-27 06:40:42 +0000
370@@ -29,16 +29,16 @@
371 explicit InverseMouseAreaType(QQuickItem *parent = 0);
372 ~InverseMouseAreaType();
373
374- Q_INVOKABLE virtual bool contains(const QPointF &point) const;
375+ Q_INVOKABLE bool contains(const QPointF &point) const override;
376
377 protected:
378- void itemChange(ItemChange, const ItemChangeData &);
379- void componentComplete();
380- bool eventFilter(QObject *, QEvent *);
381+ void itemChange(ItemChange, const ItemChangeData &) override;
382+ void componentComplete() override;
383+ bool eventFilter(QObject *, QEvent *) override;
384
385 // override mouse events
386- void mousePressEvent(QMouseEvent *event);
387- void mouseDoubleClickEvent(QMouseEvent *event);
388+ void mousePressEvent(QMouseEvent *event) override;
389+ void mouseDoubleClickEvent(QMouseEvent *event) override;
390
391
392 private: // getter/setter
393
394=== modified file 'src/Ubuntu/Components/plugin/plugin.h'
395--- src/Ubuntu/Components/plugin/plugin.h 2016-04-20 15:00:27 +0000
396+++ src/Ubuntu/Components/plugin/plugin.h 2016-05-27 06:40:42 +0000
397@@ -30,8 +30,8 @@
398 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
399
400 public:
401- void registerTypes(const char *uri);
402- void initializeEngine(QQmlEngine *engine, const char *uri);
403+ void registerTypes(const char *uri) override;
404+ void initializeEngine(QQmlEngine *engine, const char *uri) override;
405 static const QUrl &pluginUrl()
406 {
407 return m_baseUrl;
408
409=== modified file 'src/Ubuntu/Components/plugin/privates/appheaderbase.h'
410--- src/Ubuntu/Components/plugin/privates/appheaderbase.h 2016-02-01 21:22:01 +0000
411+++ src/Ubuntu/Components/plugin/privates/appheaderbase.h 2016-05-27 06:40:42 +0000
412@@ -44,8 +44,8 @@
413 void themeChanged2();
414
415 protected:
416- virtual void show(bool animate);
417- virtual void hide(bool animate);
418+ void show(bool animate) override;
419+ void hide(bool animate) override;
420
421 private:
422 bool m_animate:1;
423
424=== modified file 'src/Ubuntu/Components/plugin/privates/frame.cpp'
425--- src/Ubuntu/Components/plugin/privates/frame.cpp 2016-01-21 11:46:11 +0000
426+++ src/Ubuntu/Components/plugin/privates/frame.cpp 2016-05-27 06:40:42 +0000
427@@ -31,10 +31,10 @@
428 {
429 public:
430 FrameShader();
431- virtual char const* const* attributeNames() const;
432- virtual void initialize();
433- virtual void updateState(
434- const RenderState& state, QSGMaterial* newEffect, QSGMaterial* oldEffect);
435+ char const* const* attributeNames() const override;
436+ void initialize() override;
437+ void updateState(
438+ const RenderState& state, QSGMaterial* newEffect, QSGMaterial* oldEffect) override;
439
440 private:
441 int m_matrixId;
442
443=== modified file 'src/Ubuntu/Components/plugin/privates/frame.h'
444--- src/Ubuntu/Components/plugin/privates/frame.h 2016-01-21 11:31:06 +0000
445+++ src/Ubuntu/Components/plugin/privates/frame.h 2016-05-27 06:40:42 +0000
446@@ -27,9 +27,9 @@
447 {
448 public:
449 UCFrameMaterial();
450- virtual QSGMaterialType* type() const;
451- virtual QSGMaterialShader* createShader() const;
452- virtual int compare(const QSGMaterial* other) const;
453+ QSGMaterialType* type() const override;
454+ QSGMaterialShader* createShader() const override;
455+ int compare(const QSGMaterial* other) const override;
456
457 quint32 textureId() const { return m_textureId; }
458
459@@ -87,7 +87,7 @@
460 void colorChanged();
461
462 private:
463- virtual QSGNode* updatePaintNode(QSGNode* oldNode, UpdatePaintNodeData* data);
464+ QSGNode* updatePaintNode(QSGNode* oldNode, UpdatePaintNodeData* data) override;
465
466 QRgb m_color;
467 float m_thickness;
468
469=== modified file 'src/Ubuntu/Components/plugin/privates/listitemdragarea.h'
470--- src/Ubuntu/Components/plugin/privates/listitemdragarea.h 2015-08-31 15:43:14 +0000
471+++ src/Ubuntu/Components/plugin/privates/listitemdragarea.h 2016-05-27 06:40:42 +0000
472@@ -31,10 +31,10 @@
473 void reset();
474
475 protected:
476- void timerEvent(QTimerEvent *event);
477- void mousePressEvent(QMouseEvent *event);
478- void mouseReleaseEvent(QMouseEvent *event);
479- void mouseMoveEvent(QMouseEvent *event);
480+ void timerEvent(QTimerEvent *event) override;
481+ void mousePressEvent(QMouseEvent *event) override;
482+ void mouseReleaseEvent(QMouseEvent *event) override;
483+ void mouseMoveEvent(QMouseEvent *event) override;
484
485 private:
486 QBasicTimer scrollTimer;
487
488=== modified file 'src/Ubuntu/Components/plugin/privates/ucpagewrapper.h'
489--- src/Ubuntu/Components/plugin/privates/ucpagewrapper.h 2016-02-08 10:25:31 +0000
490+++ src/Ubuntu/Components/plugin/privates/ucpagewrapper.h 2016-05-27 06:40:42 +0000
491@@ -77,7 +77,7 @@
492 Q_INVOKABLE void destroyObject ();
493
494 // QQuickItem interface
495- virtual void itemChange(ItemChange change, const ItemChangeData &data) override;
496+ void itemChange(ItemChange change, const ItemChangeData &data) override;
497
498 //override QQuickItem properties
499 void setVisible2(bool visible);
500
501=== modified file 'src/Ubuntu/Components/plugin/privates/ucpagewrapperincubator_p.h'
502--- src/Ubuntu/Components/plugin/privates/ucpagewrapperincubator_p.h 2016-02-18 19:18:13 +0000
503+++ src/Ubuntu/Components/plugin/privates/ucpagewrapperincubator_p.h 2016-05-27 06:40:42 +0000
504@@ -36,7 +36,7 @@
505 ~UCPageWrapperIncubator();
506
507 // QQmlIncubator interface
508- virtual void statusChanged(Status status) override;
509+ void statusChanged(Status status) override;
510 Q_INVOKABLE void forceCompletion();
511
512 QJSValue onStatusChanged() const;
513@@ -44,7 +44,7 @@
514
515 protected:
516 // QQmlIncubator interface
517- virtual void setInitialState(QObject *target) override;
518+ void setInitialState(QObject *target) override;
519
520
521 Q_SIGNALS:
522
523=== modified file 'src/Ubuntu/Components/plugin/quickutils.h'
524--- src/Ubuntu/Components/plugin/quickutils.h 2016-02-25 19:42:11 +0000
525+++ src/Ubuntu/Components/plugin/quickutils.h 2016-05-27 06:40:42 +0000
526@@ -77,7 +77,7 @@
527 void keyboardAttachedChanged();
528
529 protected:
530- bool eventFilter(QObject *, QEvent *);
531+ bool eventFilter(QObject *, QEvent *) override;
532
533 private:
534 explicit QuickUtils(QObject *parent = 0);
535
536=== modified file 'src/Ubuntu/Components/plugin/sortfiltermodel.h'
537--- src/Ubuntu/Components/plugin/sortfiltermodel.h 2014-05-22 15:57:23 +0000
538+++ src/Ubuntu/Components/plugin/sortfiltermodel.h 2016-05-27 06:40:42 +0000
539@@ -40,10 +40,10 @@
540 Q_INVOKABLE QVariantMap get(int row);
541 QVariant data(int row, int role);
542 Q_INVOKABLE int count();
543- virtual bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;
544+ bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override;
545
546 /* getters */
547- QHash<int, QByteArray> roleNames() const;
548+ QHash<int, QByteArray> roleNames() const override;
549
550 /* setters */
551 void setFilterProperty(const QString& property);
552
553=== modified file 'src/Ubuntu/Components/plugin/ucabstractbutton.h'
554--- src/Ubuntu/Components/plugin/ucabstractbutton.h 2016-04-14 22:03:13 +0000
555+++ src/Ubuntu/Components/plugin/ucabstractbutton.h 2016-05-27 06:40:42 +0000
556@@ -51,11 +51,11 @@
557 bool contains(const QPointF &point) const override;
558
559 protected:
560- void classBegin();
561- virtual void geometryChanged(const QRectF &newGeometry,
562- const QRectF &oldGeometry);
563- void keyReleaseEvent(QKeyEvent *key);
564- void touchEvent(QTouchEvent *event);
565+ void classBegin() override;
566+ void geometryChanged(const QRectF &newGeometry,
567+ const QRectF &oldGeometry) override;
568+ void keyReleaseEvent(QKeyEvent *key) override;
569+ void touchEvent(QTouchEvent *event) override;
570
571 Q_SIGNALS:
572 void pressedChanged();
573
574=== modified file 'src/Ubuntu/Components/plugin/ucaction.h'
575--- src/Ubuntu/Components/plugin/ucaction.h 2015-12-21 17:49:59 +0000
576+++ src/Ubuntu/Components/plugin/ucaction.h 2016-05-27 06:40:42 +0000
577@@ -153,7 +153,7 @@
578 bool isValidType(QVariant::Type valueType);
579 void generateName();
580 void setMnemonicFromText(const QString &text);
581- bool event(QEvent *event);
582+ bool event(QEvent *event) override;
583 void onKeyboardAttached();
584 };
585 QML_DECLARE_TYPE(UCAction)
586
587=== modified file 'src/Ubuntu/Components/plugin/ucactioncontext.h'
588--- src/Ubuntu/Components/plugin/ucactioncontext.h 2015-12-25 10:59:23 +0000
589+++ src/Ubuntu/Components/plugin/ucactioncontext.h 2016-05-27 06:40:42 +0000
590@@ -38,8 +38,8 @@
591
592 static UCActionContextAttached *qmlAttachedProperties(QObject *owner);
593
594- void classBegin();
595- void componentComplete();
596+ void classBegin() override;
597+ void componentComplete() override;
598 void markActionsPublished(bool mark);
599 bool isPopup() const
600 {
601
602=== modified file 'src/Ubuntu/Components/plugin/ucactionmanager.h'
603--- src/Ubuntu/Components/plugin/ucactionmanager.h 2015-07-09 17:55:03 +0000
604+++ src/Ubuntu/Components/plugin/ucactionmanager.h 2016-05-27 06:40:42 +0000
605@@ -34,8 +34,8 @@
606 public:
607 explicit UCActionManager(QObject *parent = 0);
608
609- void classBegin() {}
610- void componentComplete();
611+ void classBegin() override {}
612+ void componentComplete() override;
613
614 QQmlListProperty<UCAction> actions();
615 QQmlListProperty<UCActionContext> localContexts();
616
617=== modified file 'src/Ubuntu/Components/plugin/ucalarmmodel.h'
618--- src/Ubuntu/Components/plugin/ucalarmmodel.h 2015-06-16 11:34:02 +0000
619+++ src/Ubuntu/Components/plugin/ucalarmmodel.h 2016-05-27 06:40:42 +0000
620@@ -33,13 +33,13 @@
621 explicit UCAlarmModel(QObject *parent = 0);
622 ~UCAlarmModel();
623
624- void classBegin();
625- void componentComplete();
626-
627- int rowCount(const QModelIndex &parent) const;
628- QVariant data(const QModelIndex &index, int role) const;
629-
630- QHash<int, QByteArray> roleNames() const;
631+ void classBegin() override;
632+ void componentComplete() override;
633+
634+ int rowCount(const QModelIndex &parent) const override;
635+ QVariant data(const QModelIndex &index, int role) const override;
636+
637+ QHash<int, QByteArray> roleNames() const override;
638
639 // invokables
640 Q_INVOKABLE UCAlarm *get(int index);
641
642=== modified file 'src/Ubuntu/Components/plugin/ucarguments.h'
643--- src/Ubuntu/Components/plugin/ucarguments.h 2013-10-18 08:56:39 +0000
644+++ src/Ubuntu/Components/plugin/ucarguments.h 2016-05-27 06:40:42 +0000
645@@ -52,8 +52,8 @@
646 Q_INVOKABLE void quitWithError(const QString& errorMessage = QString());
647
648 // inherited from QQmlParserStatus
649- void classBegin();
650- void componentComplete();
651+ void classBegin() override;
652+ void componentComplete() override;
653
654 // methods necessary for implementing property QQmlListProperty arguments
655 void appendArguments(UCArgument* argument);
656
657=== modified file 'src/Ubuntu/Components/plugin/ucbottomedge.h'
658--- src/Ubuntu/Components/plugin/ucbottomedge.h 2016-02-20 15:11:02 +0000
659+++ src/Ubuntu/Components/plugin/ucbottomedge.h 2016-05-27 06:40:42 +0000
660@@ -104,8 +104,8 @@
661 static void regions_clear(QQmlListProperty<UCBottomEdgeRegion> *sections);
662
663 void initializeComponent();
664- void classBegin();
665- void itemChange(ItemChange change, const ItemChangeData &data);
666+ void classBegin() override;
667+ void itemChange(ItemChange change, const ItemChangeData &data) override;
668 bool eventFilter(QObject *target, QEvent *event) override;
669
670 void unlockOperation(bool running);
671
672=== modified file 'src/Ubuntu/Components/plugin/ucbottomedge_p.h'
673--- src/Ubuntu/Components/plugin/ucbottomedge_p.h 2016-02-20 15:11:02 +0000
674+++ src/Ubuntu/Components/plugin/ucbottomedge_p.h 2016-05-27 06:40:42 +0000
675@@ -70,8 +70,8 @@
676 // from UCStyledItemBase
677 bool loadStyleItem(bool animated = true) override;
678 // from QQuickItemChangeListener
679- void itemChildAdded(QQuickItem *item, QQuickItem *child);
680- void itemChildRemoved(QQuickItem *item, QQuickItem *child);
681+ void itemChildAdded(QQuickItem *item, QQuickItem *child) override;
682+ void itemChildRemoved(QQuickItem *item, QQuickItem *child) override;
683
684 void setCurrentContent();
685 void resetCurrentContent(QQuickItem *newItem);
686
687=== modified file 'src/Ubuntu/Components/plugin/ucbottomedgehint.h'
688--- src/Ubuntu/Components/plugin/ucbottomedgehint.h 2015-12-11 11:04:54 +0000
689+++ src/Ubuntu/Components/plugin/ucbottomedgehint.h 2016-05-27 06:40:42 +0000
690@@ -70,12 +70,12 @@
691 void stateChanged();
692 protected:
693 UCBottomEdgeHint(UCBottomEdgeHintPrivate &&, QQuickItem *parent);
694- void classBegin();
695- void itemChange(ItemChange change, const ItemChangeData &data);
696- void timerEvent(QTimerEvent *event);
697- void keyPressEvent(QKeyEvent *event);
698- void mousePressEvent(QMouseEvent *event);
699- void mouseReleaseEvent(QMouseEvent *event);
700+ void classBegin() override;
701+ void itemChange(ItemChange change, const ItemChangeData &data) override;
702+ void timerEvent(QTimerEvent *event) override;
703+ void keyPressEvent(QKeyEvent *event) override;
704+ void mousePressEvent(QMouseEvent *event) override;
705+ void mouseReleaseEvent(QMouseEvent *event) override;
706
707 void handleFlickableActivation();
708 void onDraggingChanged(bool dragging);
709
710=== modified file 'src/Ubuntu/Components/plugin/ucbottomedgestyle.h'
711--- src/Ubuntu/Components/plugin/ucbottomedgestyle.h 2015-11-20 10:32:07 +0000
712+++ src/Ubuntu/Components/plugin/ucbottomedgestyle.h 2016-05-27 06:40:42 +0000
713@@ -45,7 +45,7 @@
714 void revealThresholdChanged();
715
716 protected:
717- void mousePressEvent(QMouseEvent *event);
718+ void mousePressEvent(QMouseEvent *event) override;
719
720 private:
721 QQuickItem *m_panel = nullptr;
722
723=== modified file 'src/Ubuntu/Components/plugin/ucheader.h'
724--- src/Ubuntu/Components/plugin/ucheader.h 2016-04-05 12:49:22 +0000
725+++ src/Ubuntu/Components/plugin/ucheader.h 2016-05-27 06:40:42 +0000
726@@ -48,7 +48,7 @@
727 protected:
728 virtual void show(bool animate);
729 virtual void hide(bool animate);
730- virtual void itemChange(ItemChange change, const ItemChangeData &value);
731+ void itemChange(ItemChange change, const ItemChangeData &value) override;
732
733 private Q_SLOTS:
734 void _q_scrolledContents();
735
736=== modified file 'src/Ubuntu/Components/plugin/ucinversemouse.h'
737--- src/Ubuntu/Components/plugin/ucinversemouse.h 2014-04-15 12:51:31 +0000
738+++ src/Ubuntu/Components/plugin/ucinversemouse.h 2016-05-27 06:40:42 +0000
739@@ -28,18 +28,18 @@
740
741 static UCInverseMouse *qmlAttachedProperties(QObject *owner);
742
743- virtual void setEnabled(bool enabled);
744- virtual void setPriority(Priority priority);
745+ void setEnabled(bool enabled) override;
746+ void setPriority(Priority priority) override;
747 bool excludeInputArea() const;
748 void setExcludeInputArea(bool value);
749
750 protected:
751 QMouseEvent mapMouseToOwner(QObject *target, QMouseEvent* event);
752 QHoverEvent mapHoverToOwner(QObject *target, QHoverEvent *event);
753- virtual bool eventFilter(QObject *, QEvent *);
754- virtual bool mouseEvents(QObject *target, QMouseEvent *event);
755- virtual bool hoverEvents(QObject *target, QHoverEvent *event);
756- virtual bool hasAttachedFilter(QQuickItem *item);
757+ bool eventFilter(QObject *, QEvent *) override;
758+ bool mouseEvents(QObject *target, QMouseEvent *event) override;
759+ bool hoverEvents(QObject *target, QHoverEvent *event) override;
760+ bool hasAttachedFilter(QQuickItem *item) override;
761 bool pointInOSK(const QPointF &point);
762 bool contains(QMouseEvent *mouse);
763 };
764
765=== modified file 'src/Ubuntu/Components/plugin/uclabel.h'
766--- src/Ubuntu/Components/plugin/uclabel.h 2016-04-26 16:09:35 +0000
767+++ src/Ubuntu/Components/plugin/uclabel.h 2016-05-27 06:40:42 +0000
768@@ -70,11 +70,11 @@
769
770 protected:
771 // from QQuickItem
772- void classBegin();
773+ void classBegin() override;
774
775 // from UCItemExtension
776- void preThemeChanged(){}
777- void postThemeChanged();
778+ void preThemeChanged() override{}
779+ void postThemeChanged() override;
780
781 Q_SIGNALS:
782 void textSizeChanged();
783
784=== modified file 'src/Ubuntu/Components/plugin/uclistitem.h'
785--- src/Ubuntu/Components/plugin/uclistitem.h 2016-01-16 15:52:56 +0000
786+++ src/Ubuntu/Components/plugin/uclistitem.h 2016-05-27 06:40:42 +0000
787@@ -76,16 +76,16 @@
788
789 protected:
790 virtual QObject *attachedViewItems(QObject *object, bool create);
791- void classBegin();
792- void componentComplete();
793- QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *data);
794- void itemChange(ItemChange change, const ItemChangeData &data);
795- void mousePressEvent(QMouseEvent *event);
796- void mouseReleaseEvent(QMouseEvent *event);
797- void mouseMoveEvent(QMouseEvent *event);
798- bool childMouseEventFilter(QQuickItem *child, QEvent *event);
799- bool eventFilter(QObject *, QEvent *);
800- void timerEvent(QTimerEvent *event);
801+ void classBegin() override;
802+ void componentComplete() override;
803+ QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *data) override;
804+ void itemChange(ItemChange change, const ItemChangeData &data) override;
805+ void mousePressEvent(QMouseEvent *event) override;
806+ void mouseReleaseEvent(QMouseEvent *event) override;
807+ void mouseMoveEvent(QMouseEvent *event) override;
808+ bool childMouseEventFilter(QQuickItem *child, QEvent *event) override;
809+ bool eventFilter(QObject *, QEvent *) override;
810+ void timerEvent(QTimerEvent *event) override;
811 void focusInEvent(QFocusEvent *event) override;
812 void focusOutEvent(QFocusEvent *event) override;
813 void keyPressEvent(QKeyEvent *event) override;
814@@ -146,7 +146,7 @@
815 void colorToChanged();
816
817 protected:
818- QSGNode *updatePaintNode(QSGNode *node, UpdatePaintNodeData *data);
819+ QSGNode *updatePaintNode(QSGNode *node, UpdatePaintNodeData *data) override;
820
821 private:
822 void updateGradient();
823@@ -241,7 +241,7 @@
824 void heightChanged();
825
826 protected:
827- bool eventFilter(QObject *, QEvent *);
828+ bool eventFilter(QObject *, QEvent *) override;
829
830 private:
831 UCListItem *m_listItem;
832
833=== modified file 'src/Ubuntu/Components/plugin/uclistitem_p.h'
834--- src/Ubuntu/Components/plugin/uclistitem_p.h 2016-01-16 15:52:56 +0000
835+++ src/Ubuntu/Components/plugin/uclistitem_p.h 2016-05-27 06:40:42 +0000
836@@ -109,8 +109,8 @@
837 QQmlListProperty<QQuickItem> children();
838 bool contentMoving() const;
839 void setContentMoving(bool moved);
840- virtual void preStyleChanged();
841- virtual bool loadStyleItem(bool animated = true);
842+ void preStyleChanged() override;
843+ bool loadStyleItem(bool animated = true) override;
844 bool dragging();
845 bool dragMode();
846 void setDragMode(bool draggable);
847
848=== modified file 'src/Ubuntu/Components/plugin/uclistitemstyle.h'
849--- src/Ubuntu/Components/plugin/uclistitemstyle.h 2015-09-04 09:32:31 +0000
850+++ src/Ubuntu/Components/plugin/uclistitemstyle.h 2016-05-27 06:40:42 +0000
851@@ -96,8 +96,8 @@
852 void rebound();
853
854 protected:
855- void classBegin();
856- void componentComplete();
857+ void classBegin() override;
858+ void componentComplete() override;
859
860 private:
861
862
863=== modified file 'src/Ubuntu/Components/plugin/ucmainviewbase.h'
864--- src/Ubuntu/Components/plugin/ucmainviewbase.h 2016-04-04 04:47:11 +0000
865+++ src/Ubuntu/Components/plugin/ucmainviewbase.h 2016-05-27 06:40:42 +0000
866@@ -62,8 +62,8 @@
867 UCPopupContext* actionContext() const;
868
869 // QQmlParserStatus interface
870- virtual void componentComplete() override;
871- virtual void classBegin() override;
872+ void componentComplete() override;
873+ void classBegin() override;
874
875 Q_SIGNALS:
876 void applicationNameChanged(QString applicationName);
877
878=== modified file 'src/Ubuntu/Components/plugin/ucmouse.h'
879--- src/Ubuntu/Components/plugin/ucmouse.h 2015-12-03 15:43:23 +0000
880+++ src/Ubuntu/Components/plugin/ucmouse.h 2016-05-27 06:40:42 +0000
881@@ -114,8 +114,8 @@
882 void exited(QQuickMouseEvent *event, QQuickItem *host);
883
884 protected:
885- virtual bool eventFilter(QObject *, QEvent *);
886- virtual void timerEvent(QTimerEvent *event);
887+ bool eventFilter(QObject *, QEvent *) override;
888+ void timerEvent(QTimerEvent *event) override;
889 virtual bool mouseEvents(QObject *target, QMouseEvent *event);
890 virtual bool hoverEvents(QObject *target, QHoverEvent *event);
891 virtual bool forwardedEvents(ForwardedEvent *event);
892
893=== modified file 'src/Ubuntu/Components/plugin/ucpagetreenode.h'
894--- src/Ubuntu/Components/plugin/ucpagetreenode.h 2016-02-02 16:43:30 +0000
895+++ src/Ubuntu/Components/plugin/ucpagetreenode.h 2016-05-27 06:40:42 +0000
896@@ -58,7 +58,7 @@
897 bool isPageTreeNode() const;
898
899 // QQmlParserStatus interface
900- virtual void componentComplete() override;
901+ void componentComplete() override;
902
903 Q_INVOKABLE void dumpNodeTree ();
904
905@@ -78,7 +78,7 @@
906 void setActiveLeafNode(QQuickItem* activeLeafNode);
907
908 // QQuickItem interface
909- virtual void itemChange(ItemChange change, const ItemChangeData &value) override;
910+ void itemChange(ItemChange change, const ItemChangeData &value) override;
911
912 private:
913 Q_DECLARE_PRIVATE(UCPageTreeNode)
914
915=== modified file 'src/Ubuntu/Components/plugin/ucproportionalshape.h'
916--- src/Ubuntu/Components/plugin/ucproportionalshape.h 2016-02-17 19:32:41 +0000
917+++ src/Ubuntu/Components/plugin/ucproportionalshape.h 2016-05-27 06:40:42 +0000
918@@ -33,7 +33,7 @@
919 void _q_updateHeight();
920
921 private:
922- void componentComplete();
923+ void componentComplete() override;
924
925 Q_DISABLE_COPY(UCProportionalShape)
926 };
927
928=== modified file 'src/Ubuntu/Components/plugin/ucscalingimageprovider.h'
929--- src/Ubuntu/Components/plugin/ucscalingimageprovider.h 2012-10-28 00:57:40 +0000
930+++ src/Ubuntu/Components/plugin/ucscalingimageprovider.h 2016-05-27 06:40:42 +0000
931@@ -26,7 +26,7 @@
932 {
933 public:
934 explicit UCScalingImageProvider();
935- QImage requestImage(const QString &id, QSize *size, const QSize &requestedSize);
936+ QImage requestImage(const QString &id, QSize *size, const QSize &requestedSize) override;
937 };
938
939 #endif // SCALINGIMAGEPROVIDER_H
940
941=== modified file 'src/Ubuntu/Components/plugin/ucserviceproperties.h'
942--- src/Ubuntu/Components/plugin/ucserviceproperties.h 2014-11-26 15:39:39 +0000
943+++ src/Ubuntu/Components/plugin/ucserviceproperties.h 2016-05-27 06:40:42 +0000
944@@ -50,8 +50,8 @@
945
946 explicit UCServiceProperties(QObject *parent = 0);
947 ~UCServiceProperties();
948- void classBegin();
949- void componentComplete();
950+ void classBegin() override;
951+ void componentComplete() override;
952
953 ServiceType type() const;
954 void setType(ServiceType type);
955
956=== modified file 'src/Ubuntu/Components/plugin/ucslotslayout.h'
957--- src/Ubuntu/Components/plugin/ucslotslayout.h 2015-11-10 11:39:51 +0000
958+++ src/Ubuntu/Components/plugin/ucslotslayout.h 2016-05-27 06:40:42 +0000
959@@ -56,8 +56,8 @@
960
961 protected:
962 Q_DECLARE_PRIVATE(UCSlotsLayout)
963- void componentComplete();
964- void itemChange(ItemChange change, const ItemChangeData &data);
965+ void componentComplete() override;
966+ void itemChange(ItemChange change, const ItemChangeData &data) override;
967
968 private:
969 Q_PRIVATE_SLOT(d_func(), void _q_onGuValueChanged())
970
971=== modified file 'src/Ubuntu/Components/plugin/ucstyleditembase.h'
972--- src/Ubuntu/Components/plugin/ucstyleditembase.h 2016-04-25 10:45:41 +0000
973+++ src/Ubuntu/Components/plugin/ucstyleditembase.h 2016-05-27 06:40:42 +0000
974@@ -70,16 +70,16 @@
975 UCStyledItemBase(UCStyledItemBasePrivate &, QQuickItem *parent);
976
977 // from UCThemingExtension interface
978- virtual void preThemeChanged();
979- virtual void postThemeChanged();
980+ void preThemeChanged() override;
981+ void postThemeChanged() override;
982
983- void classBegin();
984- void componentComplete();
985- void itemChange(ItemChange change, const ItemChangeData &data);
986- void focusInEvent(QFocusEvent *key);
987+ void classBegin() override;
988+ void componentComplete() override;
989+ void itemChange(ItemChange change, const ItemChangeData &data) override;
990+ void focusInEvent(QFocusEvent *key) override;
991 void setKeyNavigationFocus(bool value);
992- void mousePressEvent(QMouseEvent *event);
993- bool childMouseEventFilter(QQuickItem *child, QEvent *event);
994+ void mousePressEvent(QMouseEvent *event) override;
995+ bool childMouseEventFilter(QQuickItem *child, QEvent *event) override;
996
997 private:
998 Q_DECLARE_PRIVATE(UCStyledItemBase)
999
1000=== modified file 'src/Ubuntu/Components/plugin/ucstyleditembase_p.h'
1001--- src/Ubuntu/Components/plugin/ucstyleditembase_p.h 2016-01-16 10:55:26 +0000
1002+++ src/Ubuntu/Components/plugin/ucstyleditembase_p.h 2016-05-27 06:40:42 +0000
1003@@ -59,7 +59,7 @@
1004 virtual void completeComponentInitialization();
1005
1006 // from UCImportVersionChecker
1007- virtual QString propertyForVersion(quint16 version) const;
1008+ QString propertyForVersion(quint16 version) const override;
1009
1010 public:
1011
1012
1013=== modified file 'src/Ubuntu/Components/plugin/ucstylehints.h'
1014--- src/Ubuntu/Components/plugin/ucstylehints.h 2015-06-02 12:37:41 +0000
1015+++ src/Ubuntu/Components/plugin/ucstylehints.h 2016-05-27 06:40:42 +0000
1016@@ -45,8 +45,8 @@
1017 void _q_applyStyleHints();
1018
1019 protected:
1020- void classBegin();
1021- void componentComplete();
1022+ void classBegin() override;
1023+ void componentComplete() override;
1024
1025 private:
1026 class Expression {
1027@@ -82,8 +82,8 @@
1028 public:
1029 UCStyleHintsParser() : QQmlCustomParser(QQmlCustomParser::AcceptsSignalHandlers) {}
1030
1031- virtual void verifyBindings(const QV4::CompiledData::Unit *qmlUnit, const QList<const QV4::CompiledData::Binding *> &bindings);
1032- virtual void applyBindings(QObject *obj, QQmlCompiledData *cdata, const QList<const QV4::CompiledData::Binding *> &bindings);
1033+ void verifyBindings(const QV4::CompiledData::Unit *qmlUnit, const QList<const QV4::CompiledData::Binding *> &bindings) override;
1034+ void applyBindings(QObject *obj, QQmlCompiledData *cdata, const QList<const QV4::CompiledData::Binding *> &bindings) override;
1035
1036 private:
1037 void verifyProperty(const QV4::CompiledData::Unit *qmlUnit, const QV4::CompiledData::Binding *binding);
1038
1039=== modified file 'src/Ubuntu/Components/plugin/uctheme.h'
1040--- src/Ubuntu/Components/plugin/uctheme.h 2016-02-25 17:45:27 +0000
1041+++ src/Ubuntu/Components/plugin/uctheme.h 2016-05-27 06:40:42 +0000
1042@@ -90,8 +90,8 @@
1043 void versionChanged();
1044
1045 protected:
1046- void classBegin();
1047- void componentComplete()
1048+ void classBegin() override;
1049+ void componentComplete() override
1050 {
1051 m_completed = true;
1052 }
1053
1054=== modified file 'src/Ubuntu/Components/plugin/ucthemingextension.cpp'
1055--- src/Ubuntu/Components/plugin/ucthemingextension.cpp 2016-01-12 13:48:53 +0000
1056+++ src/Ubuntu/Components/plugin/ucthemingextension.cpp 2016-05-27 06:40:42 +0000
1057@@ -75,7 +75,7 @@
1058 QQuickItem *m_item;
1059 QQuickItem *m_prevParent;
1060
1061- void itemParentChanged(QQuickItem *item, QQuickItem *newParent);
1062+ void itemParentChanged(QQuickItem *item, QQuickItem *newParent) override;
1063
1064 private:
1065
1066
1067=== modified file 'src/Ubuntu/Components/plugin/ucubuntushape.h'
1068--- src/Ubuntu/Components/plugin/ucubuntushape.h 2015-12-10 06:25:58 +0000
1069+++ src/Ubuntu/Components/plugin/ucubuntushape.h 2016-05-27 06:40:42 +0000
1070@@ -31,10 +31,10 @@
1071 {
1072 public:
1073 ShapeShader();
1074- virtual char const* const* attributeNames() const;
1075- virtual void initialize();
1076- virtual void updateState(
1077- const RenderState& state, QSGMaterial* newEffect, QSGMaterial* oldEffect);
1078+ char const* const* attributeNames() const override;
1079+ void initialize() override;
1080+ void updateState(
1081+ const RenderState& state, QSGMaterial* newEffect, QSGMaterial* oldEffect) override;
1082 bool useDistanceFields() const { return m_useDistanceFields; }
1083
1084 private:
1085@@ -73,9 +73,9 @@
1086 };
1087
1088 ShapeMaterial();
1089- virtual QSGMaterialType* type() const;
1090- virtual QSGMaterialShader* createShader() const;
1091- virtual int compare(const QSGMaterial* other) const;
1092+ QSGMaterialType* type() const override;
1093+ QSGMaterialShader* createShader() const override;
1094+ int compare(const QSGMaterial* other) const override;
1095 virtual void updateTextures();
1096 const Data* constData() const { return &m_data; }
1097 Data* data() { return &m_data; }
1098@@ -110,7 +110,7 @@
1099 ShapeNode();
1100 ShapeMaterial* material() { return &m_material; }
1101 QSGGeometry* geometry() { return &m_geometry; }
1102- void preprocess() { m_material.updateTextures(); }
1103+ void preprocess() override { m_material.updateTextures(); }
1104
1105 private:
1106 ShapeMaterial m_material;
1107@@ -286,10 +286,10 @@
1108 void verticalAlignmentChanged();
1109
1110 protected:
1111- virtual QString propertyForVersion(quint16 version) const;
1112- virtual void componentComplete();
1113- virtual QSGNode* updatePaintNode(QSGNode* oldNode, UpdatePaintNodeData* data);
1114- virtual void geometryChanged(const QRectF& newGeometry, const QRectF& oldGeometry);
1115+ QString propertyForVersion(quint16 version) const override;
1116+ void componentComplete() override;
1117+ QSGNode* updatePaintNode(QSGNode* oldNode, UpdatePaintNodeData* data) override;
1118+ void geometryChanged(const QRectF& newGeometry, const QRectF& oldGeometry) override;
1119
1120 // Virtual functions for extended shapes.
1121 virtual QSGNode* createSceneGraphNode() const;
1122
1123=== modified file 'src/Ubuntu/Components/plugin/ucubuntushapeoverlay.h'
1124--- src/Ubuntu/Components/plugin/ucubuntushapeoverlay.h 2015-09-10 11:04:16 +0000
1125+++ src/Ubuntu/Components/plugin/ucubuntushapeoverlay.h 2016-05-27 06:40:42 +0000
1126@@ -27,7 +27,7 @@
1127 {
1128 public:
1129 ShapeOverlayShader();
1130- virtual char const* const* attributeNames() const;
1131+ char const* const* attributeNames() const override;
1132 };
1133
1134 // --- Scene graph material ---
1135@@ -35,8 +35,8 @@
1136 class ShapeOverlayMaterial : public ShapeMaterial
1137 {
1138 public:
1139- virtual QSGMaterialType* type() const;
1140- virtual QSGMaterialShader* createShader() const;
1141+ QSGMaterialType* type() const override;
1142+ QSGMaterialShader* createShader() const override;
1143 };
1144
1145 // --- Scene graph node ---
1146@@ -58,7 +58,7 @@
1147
1148 ShapeOverlayNode();
1149 QSGGeometry* geometry() { return &m_geometry; }
1150- void preprocess() { m_material.updateTextures(); }
1151+ void preprocess() override { m_material.updateTextures(); }
1152
1153 private:
1154 ShapeOverlayMaterial m_material;
1155@@ -92,11 +92,11 @@
1156 void overlayColorChanged();
1157
1158 protected:
1159- virtual QSGNode* createSceneGraphNode() const;
1160- virtual void updateGeometry(
1161+ QSGNode* createSceneGraphNode() const override;
1162+ void updateGeometry(
1163 QSGNode* node, const QSizeF& itemSize, float radius, float shapeOffset,
1164 const QVector4D& sourceCoordTransform, const QVector4D& sourceMaskTransform,
1165- const quint32 backgroundColor[3]);
1166+ const quint32 backgroundColor[3]) override;
1167
1168 private:
1169 quint16 m_overlayX;
1170
1171=== modified file 'src/Ubuntu/Components/plugin/unitythemeiconprovider.h'
1172--- src/Ubuntu/Components/plugin/unitythemeiconprovider.h 2016-05-06 08:53:16 +0000
1173+++ src/Ubuntu/Components/plugin/unitythemeiconprovider.h 2016-05-27 06:40:42 +0000
1174@@ -25,7 +25,7 @@
1175 {
1176 public:
1177 UnityThemeIconProvider(const QString &themeName = QStringLiteral("suru"));
1178- QImage requestImage(const QString &id, QSize *size, const QSize &requestedSize);
1179+ QImage requestImage(const QString &id, QSize *size, const QSize &requestedSize) override;
1180
1181 private:
1182 QSharedPointer<class IconTheme> theme;
1183
1184=== modified file 'src/Ubuntu/Layouts/plugin/propertychanges_p.h'
1185--- src/Ubuntu/Layouts/plugin/propertychanges_p.h 2016-03-16 17:20:49 +0000
1186+++ src/Ubuntu/Layouts/plugin/propertychanges_p.h 2016-05-27 06:40:42 +0000
1187@@ -116,7 +116,7 @@
1188 public:
1189 ParentChange(QQuickItem *item, QQuickItem *targetParent, bool topmostChild);
1190
1191- void apply();
1192+ void apply() override;
1193 private:
1194 QQuickItem *newParent;
1195 bool topmostChild;
1196@@ -128,8 +128,8 @@
1197 public:
1198 AnchorChange(QQuickItem *item, const QString &anchor, QQuickItem *target, const QString &targetAnchor = QString());
1199
1200- void apply();
1201- void revert();
1202+ void apply() override;
1203+ void revert() override;
1204 private:
1205 bool active;
1206 };
1207@@ -139,11 +139,11 @@
1208 {
1209 public:
1210 ItemStackBackup(QQuickItem *item);
1211- void apply() {}
1212- void revert();
1213+ void apply() override {}
1214+ void revert() override;
1215
1216 protected:
1217- virtual void saveState();
1218+ void saveState() override;
1219 QQuickItem *target;
1220 QQuickItem *prevItem;
1221 private:
1222@@ -157,10 +157,10 @@
1223 public:
1224 AnchorBackup(QQuickItem *item);
1225
1226- void apply();
1227- void revert();
1228+ void apply() override;
1229+ void revert() override;
1230 protected:
1231- virtual void saveState();
1232+ void saveState() override;
1233
1234 enum Anchor{
1235 Left = 0,
1236
1237=== modified file 'src/Ubuntu/Layouts/plugin/ullayouts.h'
1238--- src/Ubuntu/Layouts/plugin/ullayouts.h 2014-05-14 11:24:48 +0000
1239+++ src/Ubuntu/Layouts/plugin/ullayouts.h 2016-05-27 06:40:42 +0000
1240@@ -73,8 +73,8 @@
1241 void currentLayoutChanged();
1242
1243 protected:
1244- void componentComplete();
1245- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry);
1246+ void componentComplete() override;
1247+ void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
1248
1249 private:
1250 QQmlListProperty<ULConditionalLayout> layouts();
1251
1252=== modified file 'src/Ubuntu/Layouts/plugin/ullayouts_p.h'
1253--- src/Ubuntu/Layouts/plugin/ullayouts_p.h 2014-05-16 08:33:43 +0000
1254+++ src/Ubuntu/Layouts/plugin/ullayouts_p.h 2016-05-27 06:40:42 +0000
1255@@ -42,8 +42,8 @@
1256 static void warning(QObject *item, const QString &message);
1257
1258 protected: // QQmlIncubator stuff
1259- void setInitialState(QObject *object);
1260- void statusChanged(Status status);
1261+ void setInitialState(QObject *object) override;
1262+ void statusChanged(Status status) override;
1263
1264 private:
1265 ULLayouts *q_ptr;
1266
1267=== modified file 'src/Ubuntu/Layouts/plugin/ulplugin.h'
1268--- src/Ubuntu/Layouts/plugin/ulplugin.h 2014-04-20 19:25:12 +0000
1269+++ src/Ubuntu/Layouts/plugin/ulplugin.h 2016-05-27 06:40:42 +0000
1270@@ -27,7 +27,7 @@
1271 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
1272
1273 public:
1274- void registerTypes(const char *uri);
1275+ void registerTypes(const char *uri) override;
1276 private:
1277 void registerTypeVersions(const char *uri, int major, int minor);
1278 };
1279
1280=== modified file 'src/Ubuntu/PerformanceMetrics/plugin/upmcpuusage.h'
1281--- src/Ubuntu/PerformanceMetrics/plugin/upmcpuusage.h 2014-02-20 12:09:26 +0000
1282+++ src/Ubuntu/PerformanceMetrics/plugin/upmcpuusage.h 2016-05-27 06:40:42 +0000
1283@@ -52,7 +52,7 @@
1284 void samplingIntervalChanged();
1285
1286 protected:
1287- void itemChange(ItemChange change, const ItemChangeData & value);
1288+ void itemChange(ItemChange change, const ItemChangeData & value) override;
1289
1290 private Q_SLOTS:
1291 void connectToWindow(QQuickWindow* window);
1292
1293=== modified file 'src/Ubuntu/PerformanceMetrics/plugin/upmplugin.h'
1294--- src/Ubuntu/PerformanceMetrics/plugin/upmplugin.h 2014-04-20 19:25:12 +0000
1295+++ src/Ubuntu/PerformanceMetrics/plugin/upmplugin.h 2016-05-27 06:40:42 +0000
1296@@ -27,8 +27,8 @@
1297 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
1298
1299 public:
1300- void registerTypes(const char *uri);
1301- void initializeEngine(QQmlEngine *engine, const char *uri);
1302+ void registerTypes(const char *uri) override;
1303+ void initializeEngine(QQmlEngine *engine, const char *uri) override;
1304 private:
1305 void registerTypeVersion(const char *uri, int major, int minor);
1306 };
1307
1308=== modified file 'src/Ubuntu/PerformanceMetrics/plugin/upmrenderingtimes.h'
1309--- src/Ubuntu/PerformanceMetrics/plugin/upmrenderingtimes.h 2014-02-11 17:40:02 +0000
1310+++ src/Ubuntu/PerformanceMetrics/plugin/upmrenderingtimes.h 2016-05-27 06:40:42 +0000
1311@@ -58,7 +58,7 @@
1312 void frameRendered(qint64 renderTime);
1313
1314 protected:
1315- void itemChange(ItemChange change, const ItemChangeData & value);
1316+ void itemChange(ItemChange change, const ItemChangeData & value) override;
1317
1318 private Q_SLOTS:
1319 void connectToWindow(QQuickWindow* window);
1320
1321=== modified file 'src/Ubuntu/PerformanceMetrics/plugin/upmtexturefromimage.h'
1322--- src/Ubuntu/PerformanceMetrics/plugin/upmtexturefromimage.h 2014-01-21 18:35:24 +0000
1323+++ src/Ubuntu/PerformanceMetrics/plugin/upmtexturefromimage.h 2016-05-27 06:40:42 +0000
1324@@ -29,7 +29,7 @@
1325 public:
1326 explicit UPMTextureFromImageTextureProvider();
1327 virtual ~UPMTextureFromImageTextureProvider();
1328- QSGTexture* texture() const;
1329+ QSGTexture* texture() const override;
1330 void setTexture(QSGTexture* texture);
1331
1332 private:
1333@@ -46,9 +46,9 @@
1334 public:
1335 explicit UPMTextureFromImage(QQuickItem* parent = 0);
1336 virtual ~UPMTextureFromImage();
1337- bool isTextureProvider() const;
1338- QSGTextureProvider* textureProvider() const;
1339- QSGNode* updatePaintNode(QSGNode* oldNode, UpdatePaintNodeData* updatePaintNodeData);
1340+ bool isTextureProvider() const override;
1341+ QSGTextureProvider* textureProvider() const override;
1342+ QSGNode* updatePaintNode(QSGNode* oldNode, UpdatePaintNodeData* updatePaintNodeData) override;
1343
1344 // getter
1345 QImage image() const;
1346
1347=== modified file 'src/Ubuntu/Test/plugin/testplugin.h'
1348--- src/Ubuntu/Test/plugin/testplugin.h 2014-06-18 05:23:46 +0000
1349+++ src/Ubuntu/Test/plugin/testplugin.h 2016-05-27 06:40:42 +0000
1350@@ -25,7 +25,7 @@
1351 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
1352
1353 public:
1354- void registerTypes(const char *uri);
1355+ void registerTypes(const char *uri) override;
1356 };
1357
1358 #endif // TESTPLUGIN_H
1359
1360=== modified file 'src/Ubuntu/UbuntuToolkit/mousetouchadaptor_p.h'
1361--- src/Ubuntu/UbuntuToolkit/mousetouchadaptor_p.h 2016-04-04 10:16:08 +0000
1362+++ src/Ubuntu/UbuntuToolkit/mousetouchadaptor_p.h 2016-05-27 06:40:42 +0000
1363@@ -35,7 +35,7 @@
1364 ~MouseTouchAdaptorPrivate();
1365
1366 virtual void init() {}
1367- virtual bool nativeEventFilter(const QByteArray & eventType, void *message, long *result)
1368+ bool nativeEventFilter(const QByteArray & eventType, void *message, long *result) override
1369 { Q_UNUSED(eventType); Q_UNUSED(message); Q_UNUSED(result); return false; }
1370 bool isEnabled() const;
1371 virtual void setEnabled(bool enabled);
1372@@ -55,7 +55,7 @@
1373
1374 void init() Q_DECL_OVERRIDE;
1375 bool nativeEventFilter(const QByteArray & eventType, void *message, long *result) Q_DECL_OVERRIDE;
1376- void setEnabled(bool value);
1377+ void setEnabled(bool value) override;
1378
1379 bool xi2HandleEvent(xcb_ge_event_t *event);
1380 bool handleButtonPress(WId windowId, uint32_t detail, uint32_t modifiers, int x, int y);
1381
1382=== modified file 'tests/api/Extinct/Animals/plugin/plugin.h'
1383--- tests/api/Extinct/Animals/plugin/plugin.h 2015-12-02 09:22:28 +0000
1384+++ tests/api/Extinct/Animals/plugin/plugin.h 2016-05-27 06:40:42 +0000
1385@@ -26,8 +26,8 @@
1386 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
1387
1388 public:
1389- void registerTypes(const char *uri);
1390- void initializeEngine(QQmlEngine *engine, const char *uri);
1391+ void registerTypes(const char *uri) override;
1392+ void initializeEngine(QQmlEngine *engine, const char *uri) override;
1393 };
1394
1395 #endif // EXTINCT_ANIMALS_PLUGIN_H
1396
1397=== modified file 'tests/unit_x11/tst_components/tabsmodel.h'
1398--- tests/unit_x11/tst_components/tabsmodel.h 2013-11-26 12:44:39 +0000
1399+++ tests/unit_x11/tst_components/tabsmodel.h 2016-05-27 06:40:42 +0000
1400@@ -28,9 +28,9 @@
1401
1402 public:
1403 TabsModel();
1404- int rowCount(const QModelIndex &parent = QModelIndex()) const;
1405- QVariant data(const QModelIndex&, int) const;
1406- QHash<int, QByteArray> roleNames() const;
1407+ int rowCount(const QModelIndex &parent = QModelIndex()) const override;
1408+ QVariant data(const QModelIndex&, int) const override;
1409+ QHash<int, QByteArray> roleNames() const override;
1410
1411 Q_INVOKABLE void append(const QString &title);
1412 Q_INVOKABLE QVariantMap get(int index);
1413
1414=== modified file 'tests/unit_x11/tst_components/tst_components.pro'
1415--- tests/unit_x11/tst_components/tst_components.pro 2015-09-14 11:39:11 +0000
1416+++ tests/unit_x11/tst_components/tst_components.pro 2016-05-27 06:40:42 +0000
1417@@ -4,6 +4,8 @@
1418
1419 TARGET = tst_components
1420
1421+CONFIG += c++11
1422+
1423 SOURCES += tst_components.cpp tabsmodel.cpp
1424 HEADERS += tabsmodel.h
1425
1426
1427=== modified file 'tests/unit_x11/tst_components/tst_pulltorefresh_topmargin.qml'
1428--- tests/unit_x11/tst_components/tst_pulltorefresh_topmargin.qml 2016-05-13 10:16:27 +0000
1429+++ tests/unit_x11/tst_components/tst_pulltorefresh_topmargin.qml 2016-05-27 06:40:42 +0000
1430@@ -24,16 +24,16 @@
1431 height: units.gu(71)
1432 id: root
1433 Flickable {
1434- id: view
1435+ id: flickable
1436 anchors.fill: parent
1437- contentHeight: 1.6*view.height
1438+ contentHeight: 1.6*flickable.height
1439 Label {
1440 anchors.centerIn: parent
1441 text: "void"
1442 }
1443 PullToRefresh {
1444 id: pullToRefresh
1445- parent: view
1446+ parent: flickable
1447 onRefresh: {
1448 refreshing = true;
1449 refreshing = false;
1450@@ -46,13 +46,13 @@
1451 when: windowShown
1452
1453 function test_reposition_after_refresh_bug1578619() {
1454- var initialTopMargin = view.topMargin;
1455- var initialContentY = view.contentY;
1456- flick(view, view.width/2, units.gu(10), 0, units.gu(40));
1457- tryCompare(view, "moving", false);
1458- tryCompare(view, "topMargin", initialTopMargin, 500,
1459+ var initialTopMargin = flickable.topMargin;
1460+ var initialContentY = flickable.contentY;
1461+ flick(flickable, flickable.width/2, units.gu(10), 0, units.gu(40));
1462+ tryCompare(flickable, "moving", false);
1463+ tryCompare(flickable, "topMargin", initialTopMargin, 500,
1464 "Initial topMargin of flickable is not restored after refreshing.");
1465- tryCompare(view, "contentY", initialContentY, 500,
1466+ tryCompare(flickable, "contentY", initialContentY, 500,
1467 "Initial contentY of flickable is not restored after refreshing.")
1468 }
1469 }

Subscribers

People subscribed via source and target branches

to status/vote changes: