Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
75abcda9
Commit
75abcda9
authored
Feb 10, 2010
by
Tobias Hunger
Browse files
Use sane Qt version on import
parent
9b551971
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/qt4buildconfiguration.cpp
View file @
75abcda9
...
...
@@ -125,6 +125,19 @@ bool Qt4BuildConfiguration::fromMap(const QVariantMap &map)
m_toolChainType
=
map
.
value
(
QLatin1String
(
TOOLCHAIN_KEY
)).
toInt
();
m_qmakeBuildConfiguration
=
QtVersion
::
QmakeBuildConfigs
(
map
.
value
(
QLatin1String
(
BUILD_CONFIGURATION_KEY
)).
toInt
());
// Pick a decent Qt version if the default version is used:
if
(
m_qtVersionId
==
0
)
{
QList
<
QtVersion
*>
versions
=
QtVersionManager
::
instance
()
->
versions
();
foreach
(
QtVersion
*
v
,
versions
)
{
if
(
v
->
isValid
())
m_qtVersionId
=
v
->
uniqueId
();
if
(
v
->
supportsTargetId
(
QLatin1String
(
DESKTOP_TARGET_ID
)))
break
;
}
if
(
m_qtVersionId
==
0
)
m_qtVersionId
=
versions
.
at
(
0
)
->
uniqueId
();
}
if
(
!
qtVersion
()
->
supportedTargetIds
().
contains
(
target
()
->
id
()))
return
false
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment