Commit 3721b5ee authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Add debugging capabilities to KisBatchNodeUpdate

parent b409fc4a
......@@ -76,3 +76,18 @@ KisBatchNodeUpdate &KisBatchNodeUpdate::operator|=(const KisBatchNodeUpdate &rhs
return *this;
}
QDebug operator<<(QDebug dbg, const KisBatchNodeUpdate &update)
{
dbg.nospace() << "KisBatchNodeUpdate (";
for (auto it = update.begin(); it != update.end(); ++it) {
dbg.nospace() << it->first << "->" << it->second;
if (next(it) != update.end()) {
dbg.nospace() << "; ";
}
}
return dbg;
}
......@@ -74,6 +74,8 @@ public:
};
KRITAIMAGE_EXPORT QDebug operator<<(QDebug dbg, const KisBatchNodeUpdate &update);
using KisBatchNodeUpdateSP = QSharedPointer<KisBatchNodeUpdate>;
using KisBatchNodeUpdateWSP = QWeakPointer<KisBatchNodeUpdate>;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment