forked from qt-creator/qt-creator
QtVersionManager et al: Code cosmetics
Apply static 'pattern' for QtVersionManager, de-noise using code. Change-Id: Id66ac90094cd7312d1e72abbdbce4c02b078456e Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -101,7 +101,7 @@ QWidget *DesignDocument::centralWidget() const
|
||||
|
||||
QString DesignDocument::pathToQt() const
|
||||
{
|
||||
QtSupport::BaseQtVersion *activeQtVersion = QtSupport::QtVersionManager::instance()->version(m_qtVersionId);
|
||||
QtSupport::BaseQtVersion *activeQtVersion = QtSupport::QtVersionManager::version(m_qtVersionId);
|
||||
if (activeQtVersion && (activeQtVersion->qtVersion() >= QtSupport::QtVersionNumber(4, 7, 1))
|
||||
&& (activeQtVersion->type() == QLatin1String(QtSupport::Constants::DESKTOPQT)
|
||||
|| activeQtVersion->type() == QLatin1String(QtSupport::Constants::SIMULATORQT)))
|
||||
|
||||
Reference in New Issue
Block a user