summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/projectexplorer/jsonwizard/jsonwizard.cpp17
-rw-r--r--src/plugins/projectexplorer/jsonwizard/jsonwizard.h4
2 files changed, 21 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/jsonwizard/jsonwizard.cpp b/src/plugins/projectexplorer/jsonwizard/jsonwizard.cpp
index 0c0543c2b9..e5ffc79965 100644
--- a/src/plugins/projectexplorer/jsonwizard/jsonwizard.cpp
+++ b/src/plugins/projectexplorer/jsonwizard/jsonwizard.cpp
@@ -32,8 +32,11 @@
#include "jsonwizardgeneratorfactory.h"
+#include <coreplugin/messagemanager.h>
+
#include <utils/algorithm.h>
#include <utils/qtcassert.h>
+#include <utils/wizardpage.h>
#include <QFileInfo>
#include <QMessageBox>
@@ -213,4 +216,18 @@ void JsonWizard::accept()
emit allDone(m_files);
}
+void JsonWizard::handleNewPages(int pageId)
+{
+ Utils::WizardPage *wp = qobject_cast<Utils::WizardPage *>(page(pageId));
+ if (!wp)
+ return;
+
+ connect(wp, &Utils::WizardPage::reportError, this, &JsonWizard::handleError);
+}
+
+void JsonWizard::handleError(const QString &message)
+{
+ Core::MessageManager::write(message, Core::MessageManager::ModeSwitch);
+}
+
} // namespace ProjectExplorer
diff --git a/src/plugins/projectexplorer/jsonwizard/jsonwizard.h b/src/plugins/projectexplorer/jsonwizard/jsonwizard.h
index b58876c0c3..e66b655a16 100644
--- a/src/plugins/projectexplorer/jsonwizard/jsonwizard.h
+++ b/src/plugins/projectexplorer/jsonwizard/jsonwizard.h
@@ -95,6 +95,10 @@ signals:
public slots:
void accept();
+private slots:
+ void handleNewPages(int pageId);
+ void handleError(const QString &message);
+
private:
QList<JsonWizardGenerator *> m_generators;