WizardPage: Add a way to report runtime errors

This will make debugging JSON wizards much simpler!

Change-Id: I03baf4b8d954a9097c0fc4e1180e91d2afe5cc4e
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2015-01-20 14:43:58 +01:00
parent a3984dd751
commit 749c740a4e

View File

@@ -52,6 +52,10 @@ public:
void registerFieldWithName(const QString &name, QWidget *widget,
const char *property = 0, const char *changedSignal = 0);
signals:
// Emitted when there is something that the developer using this page should be aware of.
void reportError(const QString &errorMessage);
private:
QSet<QString> m_toRegister;
};