forked from qt-creator/qt-creator
qmake project wizards: Hide if no qt is configured
Task-number: QTCREATORBUG-8708 Change-Id: Ia3f842cd4171c11307d3278aa5a1c85adc6e1fa7 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -32,6 +32,7 @@
|
|||||||
#include "emptyprojectwizarddialog.h"
|
#include "emptyprojectwizarddialog.h"
|
||||||
|
|
||||||
#include <projectexplorer/projectexplorerconstants.h>
|
#include <projectexplorer/projectexplorerconstants.h>
|
||||||
|
#include <qtsupport/qtsupportconstants.h>
|
||||||
|
|
||||||
#include <QIcon>
|
#include <QIcon>
|
||||||
|
|
||||||
@@ -51,7 +52,7 @@ EmptyProjectWizard::EmptyProjectWizard()
|
|||||||
|
|
||||||
Core::FeatureSet EmptyProjectWizard::requiredFeatures() const
|
Core::FeatureSet EmptyProjectWizard::requiredFeatures() const
|
||||||
{
|
{
|
||||||
return Core::FeatureSet();
|
return Core::Feature(QtSupport::Constants::FEATURE_QT);
|
||||||
}
|
}
|
||||||
|
|
||||||
QWizard *EmptyProjectWizard::createWizardDialog(QWidget *parent,
|
QWizard *EmptyProjectWizard::createWizardDialog(QWidget *parent,
|
||||||
|
|||||||
@@ -36,6 +36,7 @@
|
|||||||
#include <utils/codegeneration.h>
|
#include <utils/codegeneration.h>
|
||||||
#include <cpptools/abstracteditorsupport.h>
|
#include <cpptools/abstracteditorsupport.h>
|
||||||
#include <projectexplorer/projectexplorerconstants.h>
|
#include <projectexplorer/projectexplorerconstants.h>
|
||||||
|
#include <qtsupport/qtsupportconstants.h>
|
||||||
|
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
@@ -142,7 +143,7 @@ Core::GeneratedFiles LibraryWizard::generateFiles(const QWizard *w,
|
|||||||
|
|
||||||
Core::FeatureSet LibraryWizard::requiredFeatures() const
|
Core::FeatureSet LibraryWizard::requiredFeatures() const
|
||||||
{
|
{
|
||||||
return Core::FeatureSet();
|
return Core::Feature(QtSupport::Constants::FEATURE_QT);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
|
|||||||
@@ -33,6 +33,7 @@
|
|||||||
|
|
||||||
#include <projectexplorer/projectexplorerconstants.h>
|
#include <projectexplorer/projectexplorerconstants.h>
|
||||||
#include <coreplugin/icore.h>
|
#include <coreplugin/icore.h>
|
||||||
|
#include <qtsupport/qtsupportconstants.h>
|
||||||
|
|
||||||
#include <QIcon>
|
#include <QIcon>
|
||||||
|
|
||||||
@@ -98,7 +99,7 @@ bool SubdirsProjectWizard::postGenerateFiles(const QWizard *w, const Core::Gener
|
|||||||
|
|
||||||
Core::FeatureSet SubdirsProjectWizard::requiredFeatures() const
|
Core::FeatureSet SubdirsProjectWizard::requiredFeatures() const
|
||||||
{
|
{
|
||||||
return Core::FeatureSet();
|
return Core::Feature(QtSupport::Constants::FEATURE_QT);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
|
|||||||
Reference in New Issue
Block a user