Merge lp:~zeller-benjamin/ubuntu-sdk-ide/noqtversionpiling into lp:ubuntu-sdk-ide

Proposed by Benjamin Zeller
Status: Merged
Merged at revision: 91
Proposed branch: lp:~zeller-benjamin/ubuntu-sdk-ide/noqtversionpiling
Merge into: lp:ubuntu-sdk-ide
Diff against target: 27 lines (+20/-0)
1 file modified
patches/qtc.patch (+20/-0)
To merge this branch: bzr merge lp:~zeller-benjamin/ubuntu-sdk-ide/noqtversionpiling
Reviewer Review Type Date Requested Status
Zoltan Balogh Pending
Review via email: mp+276384@code.launchpad.net

Commit message

Stop piling up Qt versions

Description of the change

Stop piling up Qt versions

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'patches/qtc.patch'
--- patches/qtc.patch 2015-10-22 10:36:47 +0000
+++ patches/qtc.patch 2015-11-02 12:36:53 +0000
@@ -9,3 +9,23 @@
9 currentAutoVersions.insert(i.value()->qmakeCommand().toString(), i.key());9 currentAutoVersions.insert(i.value()->qmakeCommand().toString(), i.key());
10 }10 }
11 }11 }
12
13--- qtcreator/src/libs/utils/buildablehelperlibrary.cpp 2015-08-18 12:02:51.000000000 +0200
14+++ qtcreator/src/libs/utils/buildablehelperlibrary.cpp 2015-11-02 12:36:14.974481823 +0100
15@@ -88,8 +88,15 @@
16
17 if (dir.exists(qmake)) {
18 const QString qmakePath = dir.absoluteFilePath(qmake);
19- if (isQmake(qmakePath))
20+ if (isQmake(qmakePath)) {
21+ QFileInfo fi(qmakePath);
22+ if (BuildableHelperLibrary::isQtChooser(fi)) {
23+ const QString qtChooserPath = BuildableHelperLibrary::qtChooserToQmakePath(fi.symLinkTarget());
24+ if (!qtChooserPath.isEmpty())
25+ return FileName::fromString(qtChooserPath);
26+ }
27 return FileName::fromString(qmakePath);
28+ }
29 }
30
31 // Prefer qmake-qt5 to qmake-qt4 by sorting the filenames in reverse order.

Subscribers

People subscribed via source and target branches