Skip to content
GitLab
Menu
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
a5af534f
Commit
a5af534f
authored
Feb 11, 2010
by
Tobias Hunger
Browse files
Fix QT version/mkspec reporting in Qt options page
parent
345f06a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/qtoptionspage.cpp
View file @
a5af534f
...
...
@@ -444,15 +444,23 @@ void QtOptionsPageWidget::showEnvironmentPage(QTreeWidgetItem *item)
{
if
(
item
)
{
int
index
=
indexForTreeItem
(
item
);
m_ui
->
errorLabel
->
setText
(
""
);
if
(
index
<
0
)
{
makeMSVCVisible
(
false
);
makeMingwVisible
(
false
);
makeS60Visible
(
false
);
return
;
}
m_ui
->
errorLabel
->
setText
(
""
);
QList
<
ProjectExplorer
::
ToolChain
::
ToolChainType
>
types
=
m_versions
.
at
(
index
)
->
possibleToolChainTypes
();
if
(
types
.
contains
(
ProjectExplorer
::
ToolChain
::
MinGW
))
{
if
(
types
.
isEmpty
())
{
makeMSVCVisible
(
false
);
makeMingwVisible
(
false
);
makeS60Visible
(
false
);
if
(
!
m_versions
.
at
(
index
)
->
isValid
())
m_ui
->
errorLabel
->
setText
(
m_versions
.
at
(
index
)
->
invalidReason
());
else
m_ui
->
errorLabel
->
setText
(
tr
(
"%1 does not specify a valid Qt installation"
).
arg
(
QDir
::
toNativeSeparators
(
m_versions
.
at
(
index
)
->
qmakeCommand
())));
}
else
if
(
types
.
contains
(
ProjectExplorer
::
ToolChain
::
MinGW
))
{
makeMSVCVisible
(
false
);
makeMingwVisible
(
true
);
makeS60Visible
(
false
);
...
...
@@ -487,18 +495,12 @@ void QtOptionsPageWidget::showEnvironmentPage(QTreeWidgetItem *item)
m_ui
->
mwcPath
->
setPath
(
m_versions
.
at
(
index
)
->
mwcDirectory
());
m_ui
->
s60SDKPath
->
setPath
(
m_versions
.
at
(
index
)
->
s60SDKDirectory
());
m_ui
->
gccePath
->
setPath
(
m_versions
.
at
(
index
)
->
gcceDirectory
());
}
else
if
(
types
.
contains
(
ProjectExplorer
::
ToolChain
::
INVALID
))
{
makeMSVCVisible
(
false
);
makeMingwVisible
(
false
);
makeS60Visible
(
false
);
if
(
!
m_versions
.
at
(
index
)
->
isValid
())
m_ui
->
errorLabel
->
setText
(
m_versions
.
at
(
index
)
->
invalidReason
());
else
m_ui
->
errorLabel
->
setText
(
tr
(
"%1 does not specify a valid Qt installation"
).
arg
(
QDir
::
toNativeSeparators
(
m_versions
.
at
(
index
)
->
qmakeCommand
())));
}
else
{
//ProjectExplorer::ToolChain::GCC
makeMSVCVisible
(
false
);
makeMingwVisible
(
false
);
makeS60Visible
(
false
);
}
if
(
m_ui
->
errorLabel
->
text
().
isEmpty
())
{
m_ui
->
errorLabel
->
setText
(
tr
(
"Found Qt version %1, using mkspec %2"
)
.
arg
(
m_versions
.
at
(
index
)
->
qtVersionString
(),
m_versions
.
at
(
index
)
->
mkspec
()));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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