diff options
Diffstat (limited to 'mappingtreemodel.h')
-rw-r--r-- | mappingtreemodel.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mappingtreemodel.h b/mappingtreemodel.h index 72a7b7f..1aebbef 100644 --- a/mappingtreemodel.h +++ b/mappingtreemodel.h @@ -9,6 +9,7 @@ #define MAPPINGTREEMODEL_H #include <QSqlDatabase> +#include <QSqlError> #include "smtreemodel.h" @@ -52,6 +53,7 @@ class MappingTreeModel : public SmTreeModel { MappingData mappingDataFromIndex(QModelIndex &idx) const; QStringList paths() const; const QString &forbidden() const { return mForbidden; } + const QSqlError &lastError() const { return mLastError; } public slots: void populate(); @@ -94,6 +96,7 @@ class MappingTreeModel : public SmTreeModel { QMap<QString, int> mMappings; const QString mForbidden; int mType; + QSqlError mLastError; }; class MappingTreeResultModel : public SmTreeModel { |