aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/tools/error.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2016-09-08 15:29:30 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2016-09-30 09:12:42 +0000
commit96b501d80e539a832ef9f2bef4f34162eb8ad3e2 (patch)
tree4b5c54efa27a0a50ee4e874334671e0856593227 /src/lib/corelib/tools/error.h
parentbf3a7979a41b166b8dc178a3cc6a22f15a4e6ea5 (diff)
Re-display warnings when loading a stored build graph
[ChangeLog] Warnings encountered during project resolving are now stored and will be re-displayed when the project is loaded. Task-number: QBS-1011 Change-Id: I5fa04d3d537866212abbdf739b09a254843de473 Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'src/lib/corelib/tools/error.h')
-rw-r--r--src/lib/corelib/tools/error.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/corelib/tools/error.h b/src/lib/corelib/tools/error.h
index c2bf575dd..7ba94aae8 100644
--- a/src/lib/corelib/tools/error.h
+++ b/src/lib/corelib/tools/error.h
@@ -52,6 +52,7 @@ class QString;
QT_END_NAMESPACE
namespace qbs {
+namespace Internal { class PersistentPool; }
class CodeLocation;
class QBS_EXPORT ErrorItem
@@ -69,6 +70,9 @@ public:
bool isBacktraceItem() const;
+ void load(Internal::PersistentPool &pool);
+ void store(Internal::PersistentPool &pool) const;
+
private:
ErrorItem(const QString &description, const CodeLocation &codeLocation,
bool isBacktraceItem = false);
@@ -97,6 +101,9 @@ public:
QString toString() const;
bool isInternalError() const;
+ void load(Internal::PersistentPool &pool);
+ void store(Internal::PersistentPool &pool) const;
+
private:
class ErrorInfoPrivate;
QSharedDataPointer<ErrorInfoPrivate> d;