forked from qt-creator/qt-creator
Make the display for qws mkspecs nicer.
This commit is contained in:
@@ -1049,9 +1049,18 @@ void QtVersion::updateMkSpec() const
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int index = qMax(mkspec.lastIndexOf('/'), mkspec.lastIndexOf('\\'));
|
QString mkspecdir = versionInfo().value("QMAKE_MKSPECS");
|
||||||
if (index >= 0)
|
if (mkspecdir.isEmpty())
|
||||||
mkspec = mkspec.mid(index+1).trimmed();
|
mkspecdir = versionInfo().value("QT_INSTALL_DATA") + "/mkspecs";
|
||||||
|
|
||||||
|
if (mkspec.startsWith(mkspecdir)) {
|
||||||
|
mkspec = mkspec.mid(mkspecdir.length() + 1);
|
||||||
|
qDebug() << "Setting mkspec to"<<mkspec;
|
||||||
|
} else {
|
||||||
|
int index = qMax(mkspec.lastIndexOf('/'), mkspec.lastIndexOf('\\'));
|
||||||
|
if (index >= 0)
|
||||||
|
mkspec = mkspec.mid(index+1).trimmed();
|
||||||
|
}
|
||||||
|
|
||||||
m_mkspec = mkspec;
|
m_mkspec = mkspec;
|
||||||
m_mkspecUpToDate = true;
|
m_mkspecUpToDate = true;
|
||||||
|
Reference in New Issue
Block a user