Merge lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/stateSaverUrlType into lp:ubuntu-ui-toolkit/staging

Proposed by Cris Dywan
Status: Merged
Approved by: Cris Dywan
Approved revision: 1536
Merged at revision: 1536
Proposed branch: lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/stateSaverUrlType
Merge into: lp:ubuntu-ui-toolkit/staging
Diff against target: 18 lines (+6/-1)
1 file modified
modules/Ubuntu/Components/plugin/ucstatesaver.cpp (+6/-1)
To merge this branch: bzr merge lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/stateSaverUrlType
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Timo Jyrinki Approve
Review via email: mp+262319@code.launchpad.net

Commit message

QQmlContextData.url is a method in 5.5.0

To post a comment you must log in.
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

Looking good! That bug seems resolved.... even though there's the next one around the corner (bug #1466484 just filed).

Build log showing it going fine all the way to the install phase where it then fails: https://launchpadlibrarian.net/209420305/buildlog_ubuntu-wily-amd64.ubuntu-ui-toolkit_1.3.1517%2B15.10.20150523-0ubuntu4~wily1~test1~qt550beta%2Bfix1_BUILDING.txt.gz

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 'modules/Ubuntu/Components/plugin/ucstatesaver.cpp'
2--- modules/Ubuntu/Components/plugin/ucstatesaver.cpp 2015-03-03 13:47:48 +0000
3+++ modules/Ubuntu/Components/plugin/ucstatesaver.cpp 2015-06-18 11:30:52 +0000
4@@ -81,8 +81,13 @@
5 {
6 QQmlContext *attacheeContext = qmlContext(m_attachee);
7 QQmlContextData *cdata = QQmlContextData::get(attacheeContext);
8+#if QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)
9+ QUrl url(cdata->url());
10+#else
11+ QUrl url(cdata->url);
12+#endif
13 QQmlData *ddata = QQmlData::get(m_attachee);
14- QString path = cdata->url.path().replace('/', '_') + ':'
15+ QString path = url.path().replace('/', '_') + ':'
16 + QString::number(ddata->lineNumber) + ':'
17 + QString::number(ddata->columnNumber) + ':' + id;
18 QObject *parent = m_attachee->parent();

Subscribers

People subscribed via source and target branches