added capability to collect multiple errormessages and display them at once

This commit is contained in:
grindhold
2014-11-10 10:35:07 +01:00
parent 05c15dff0c
commit 27a136fe03
7 changed files with 67 additions and 4 deletions

View File

@@ -84,6 +84,11 @@ public:
static void saveWidgetState( QWidget * _w, QDomElement & _de );
static void restoreWidgetState( QWidget * _w, const QDomElement & _de );
void collectErrors( const QList<QString>* errors );
void collectError( const QString error );
void clearErrors();
void showErrors( const QString reason );
public slots:
void resetWindowTitle();
@@ -159,6 +164,7 @@ private:
QBasicTimer m_updateTimer;
QTimer m_autoSaveTimer;
QList<QString>* m_errors;
friend class engine;

View File

@@ -178,6 +178,8 @@ public:
// create a view for the model
PluginView * createView( QWidget* parent );
QList<QString> * getErrorReport();
protected:
// create a view for the model
@@ -185,6 +187,9 @@ protected:
private:
QList<QString> * m_errorReport;
void logError( QString err_msg );
const Descriptor* m_descriptor;
// pointer to instantiation-function in plugin