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
0c6568af
Commit
0c6568af
authored
Aug 10, 2010
by
Tobias Hunger
Browse files
Quiten debug messages
* Simplify logic while at it, too.
parent
cd2a0231
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/qt-s60/gccetoolchain.cpp
View file @
0c6568af
...
...
@@ -167,7 +167,7 @@ QString GCCEToolChain::gcceVersion() const
return
QString
();
QProcess
gxx
;
QStringList
arguments
;
arguments
<<
QLatin1String
(
"-
-
version"
);
arguments
<<
QLatin1String
(
"-
dump
version"
);
ProjectExplorer
::
Environment
env
=
ProjectExplorer
::
Environment
::
systemEnvironment
();
env
.
set
(
QLatin1String
(
"LC_ALL"
),
QLatin1String
(
"C"
));
//override current locale settings
gxx
.
setEnvironment
(
env
.
toStringList
());
...
...
@@ -179,12 +179,7 @@ QString GCCEToolChain::gcceVersion() const
QString
line
;
if
(
gxx
.
canReadLine
())
{
line
=
gxx
.
readLine
();
qDebug
()
<<
"GCCVersion:"
<<
line
;
QRegExp
version
(
"
\\
s((
\\
d+)
\\
.(
\\
d+)
\\
.(
\\
d+))
\\
s"
);
if
(
line
.
indexOf
(
version
)
>=
-
1
)
{
qDebug
()
<<
" MATCHED!"
;
m_gcceVersion
=
version
.
cap
(
1
);
}
m_gcceVersion
=
line
.
trimmed
();
}
}
return
m_gcceVersion
;
...
...
Write
Preview
Supports
Markdown
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