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:
dt
2008-12-08 14:20:35 +01:00
parent bf7486c011
commit 7411d9db55
2 changed files with 26 additions and 8 deletions

View File

@@ -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();