forked from qt-creator/qt-creator
QtSupport: De-virtualize BaseQtVersion::sourcePath
... as it was never re-implemented. Also inline the private BaseQtVersion::updateSourcePath in this only user. Change-Id: I505395b5e9b0723ceab790f3b776cea12fe64780 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -744,17 +744,12 @@ QString BaseQtVersion::toHtml(bool verbose) const
|
||||
return rc;
|
||||
}
|
||||
|
||||
void BaseQtVersion::updateSourcePath() const
|
||||
{
|
||||
if (!m_sourcePath.isEmpty())
|
||||
return;
|
||||
updateVersionInfo();
|
||||
m_sourcePath = sourcePath(m_versionInfo);
|
||||
}
|
||||
|
||||
FileName BaseQtVersion::sourcePath() const
|
||||
{
|
||||
updateSourcePath();
|
||||
if (m_sourcePath.isEmpty()) {
|
||||
updateVersionInfo();
|
||||
m_sourcePath = sourcePath(m_versionInfo);
|
||||
}
|
||||
return m_sourcePath;
|
||||
}
|
||||
|
||||
|
@@ -148,7 +148,7 @@ public:
|
||||
virtual Utils::Environment qmakeRunEnvironment() const;
|
||||
|
||||
// source path defined by qmake property QT_INSTALL_PREFIX/src or by qmake.stash QT_SOURCE_TREE
|
||||
virtual Utils::FileName sourcePath() const;
|
||||
Utils::FileName sourcePath() const;
|
||||
// returns source path for installed qt packages and empty string for self build qt
|
||||
Utils::FileName qtPackageSourcePath() const;
|
||||
bool isInSourceDirectory(const Utils::FileName &filePath);
|
||||
@@ -270,7 +270,6 @@ protected:
|
||||
|
||||
private:
|
||||
void setAutoDetectionSource(const QString &autodetectionSource);
|
||||
void updateSourcePath() const;
|
||||
void updateVersionInfo() const;
|
||||
enum HostBinaries { Designer, Linguist, Uic, QScxmlc };
|
||||
QString findHostBinary(HostBinaries binary) const;
|
||||
|
Reference in New Issue
Block a user