forked from qt-creator/qt-creator
Fixes: Show the actual qt version in the Tools/Options dialog.
Task: 237665 Details: We parse the qmake output anyway, so we can simply add the version from there. Seems to work nicely. Idea by hjk.
This commit is contained in:
@@ -70,6 +70,7 @@ public:
|
||||
QString mkspecPath() const;
|
||||
QString makeCommand() const;
|
||||
QString qmakeCommand() const;
|
||||
QString qtVersionString() const;
|
||||
// Returns the PREFIX, BINPREFIX, DOCPREFIX and similar information
|
||||
QHash<QString,QString> versionInfo() const;
|
||||
|
||||
@@ -119,6 +120,9 @@ private:
|
||||
mutable bool m_defaultConfigIsDebug;
|
||||
mutable bool m_defaultConfigIsDebugAndRelease;
|
||||
mutable QString m_qmakeCommand;
|
||||
// This is updated on first call to qmakeCommand
|
||||
// That function is called from updateVersionInfo()
|
||||
mutable QString m_qtVersionString;
|
||||
Q_DISABLE_COPY(QtVersion);
|
||||
};
|
||||
|
||||
@@ -189,7 +193,7 @@ public:
|
||||
// returns something like qmake4, qmake, qmake-qt4 or whatever distributions have chosen (used by QtVersion)
|
||||
static QStringList possibleQMakeCommands();
|
||||
// return true if the qmake at qmakePath is qt4 (used by QtVersion)
|
||||
static bool checkQMakeVersion(const QString &qmakePath);
|
||||
static QString qtVersionForQMake(const QString &qmakePath);
|
||||
signals:
|
||||
void defaultQtVersionChanged();
|
||||
void qtVersionsChanged();
|
||||
|
||||
Reference in New Issue
Block a user