forked from qt-creator/qt-creator
CMakeOpenProjectWizard: Warn the user if no kit is available
And allow the user to configure kits before proceding. Change-Id: I6acf2bcc05d53b0ac9d448599d29d2fe02ae1349 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -111,6 +111,7 @@ public:
|
||||
ProjectExplorer::Kit *kit() const;
|
||||
void setKit(ProjectExplorer::Kit *kit);
|
||||
bool existsUpToDateXmlFile() const;
|
||||
bool compatibleKitExist() const;
|
||||
|
||||
private:
|
||||
void init();
|
||||
@@ -124,6 +125,21 @@ private:
|
||||
ProjectExplorer::Kit *m_kit;
|
||||
};
|
||||
|
||||
class NoKitPage : public QWizardPage
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
NoKitPage(CMakeOpenProjectWizard *cmakeWizard);
|
||||
bool isComplete() const;
|
||||
private slots:
|
||||
void kitsChanged();
|
||||
void showOptions();
|
||||
private:
|
||||
QLabel *m_descriptionLabel;
|
||||
QPushButton *m_optionsButton;
|
||||
CMakeOpenProjectWizard *m_cmakeWizard;
|
||||
};
|
||||
|
||||
class InSourceBuildPage : public QWizardPage
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
Reference in New Issue
Block a user