Merge lp:~aacid/ubuntu-ui-toolkit/noqdirseparator into lp:ubuntu-ui-toolkit/staging
- noqdirseparator
- Merge into staging
Status: | Merged |
---|---|
Approved by: | Tim Peeters |
Approved revision: | 1904 |
Merged at revision: | 1908 |
Proposed branch: | lp:~aacid/ubuntu-ui-toolkit/noqdirseparator |
Merge into: | lp:ubuntu-ui-toolkit/staging |
Diff against target: |
34 lines (+3/-3) 2 files modified
src/Ubuntu/Components/plugin/ucqquickimageextension.cpp (+2/-2) src/Ubuntu/Components/plugin/ucunits.cpp (+1/-1) |
To merge this branch: | bzr merge lp:~aacid/ubuntu-ui-toolkit/noqdirseparator |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
ubuntu-sdk-build-bot | continuous-integration | Approve | |
Tim Peeters | Approve | ||
Review via email: mp+289384@code.launchpad.net |
Commit message
Use "/" instead of QDir::separator for building paths that will be passed to Qt
Description of the change
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1904
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1904
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1904
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1904
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1904
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
SUCCESS: https:/
None: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
FAILED: Continuous integration, rev:1904
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1904
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1904
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1904
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
FAILURE: https:/
None: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1904
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
FAILED: Continuous integration, rev:1904
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1904
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1904
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
https:/
Executed test runs:
SUCCESS: https:/
FAILURE: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
None: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1904
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1904
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1904
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:1904
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
Preview Diff
1 | === modified file 'src/Ubuntu/Components/plugin/ucqquickimageextension.cpp' |
2 | --- src/Ubuntu/Components/plugin/ucqquickimageextension.cpp 2016-02-15 22:47:02 +0000 |
3 | +++ src/Ubuntu/Components/plugin/ucqquickimageextension.cpp 2016-03-17 15:34:20 +0000 |
4 | @@ -122,7 +122,7 @@ |
5 | rewrittenSciFile = UCQQuickImageExtension::s_rewrittenSciFiles.value(m_source).data(); |
6 | if (rewrittenSciFile == NULL) { |
7 | rewrittenSciFile = new QTemporaryFile; |
8 | - rewrittenSciFile->setFileTemplate(QDir::tempPath() + QDir::separator() + "XXXXXX.sci"); |
9 | + rewrittenSciFile->setFileTemplate(QDir::tempPath() + "/XXXXXX.sci"); |
10 | rewrittenSciFile->open(); |
11 | QTextStream output(rewrittenSciFile); |
12 | |
13 | @@ -184,7 +184,7 @@ |
14 | QString UCQQuickImageExtension::scaledSource(QString source, const QString &sciFilePath, const QString &scaleFactor) |
15 | { |
16 | // Rewrite the source line by prepending "image://scaling" to the source value |
17 | - QString sciDirectory = QFileInfo(sciFilePath).dir().path() + QDir::separator(); |
18 | + QString sciDirectory = QFileInfo(sciFilePath).dir().path() + "/"; |
19 | QString baseUrl = "image://scaling/" + scaleFactor + "/" + sciDirectory; |
20 | |
21 | // If the source url is between quotes "", remove them |
22 | |
23 | === modified file 'src/Ubuntu/Components/plugin/ucunits.cpp' |
24 | --- src/Ubuntu/Components/plugin/ucunits.cpp 2016-02-10 09:54:59 +0000 |
25 | +++ src/Ubuntu/Components/plugin/ucunits.cpp 2016-03-17 15:34:20 +0000 |
26 | @@ -175,7 +175,7 @@ |
27 | return QString(); |
28 | } |
29 | |
30 | - QString prefix = fileInfo.dir().absolutePath() + QDir::separator() + fileInfo.baseName(); |
31 | + QString prefix = fileInfo.dir().absolutePath() + "/" + fileInfo.baseName(); |
32 | QString suffix = "." + fileInfo.completeSuffix(); |
33 | |
34 | /* Use file with expected grid unit suffix if it exists. |
Right, the documentation http:// doc.qt. io/qt-5/ qdir.html# separator states:
"You do not need to use this function to build file paths. If you always use "/", Qt will translate your paths to conform to the underlying operating system."
Using separator() might even cause problems on other platforms, see http:// agateau. com/2015/ qdir-separator- considered- harmful/