Commit b01f1d2d authored by Gilles Caulier's avatar Gilles Caulier 🗼
Browse files

add debug

parent 84c6913f
......@@ -1063,6 +1063,9 @@ void QueueMgrWindow::slotAssignQueueSettings(const QString& title)
queue->setSettings(q.qSettings);
AssignedBatchTools tools;
tools.m_toolsList = q.aTools;
kDebug() << tools.m_toolsList;
queue->setAssignedTools(tools);
d->queuePool->slotQueueSelected(d->queuePool->currentIndex());
}
......
......@@ -54,6 +54,17 @@ bool BatchToolSet::operator==(const BatchToolSet& set) const
);
}
QDebug operator<<(QDebug dbg, const BatchToolSet& s)
{
dbg.nospace() << "BatchToolSet::";
dbg.nospace() << "index: " << s.index << ", ";
dbg.nospace() << "version: " << s.version << ", ";
dbg.nospace() << "name: " << s.name << ", ";
dbg.nospace() << "group: " << s.group << ", ";
dbg.nospace() << "settings: " << s.settings;
return dbg.space();
}
// ---------------------------------------------------------------------------------------------
AssignedBatchTools::AssignedBatchTools()
......
......@@ -72,6 +72,9 @@ public:
BatchToolSettings settings;
};
//! kDebug() stream operator. Writes property @a t to the debug output in a nicely formatted way.
DIGIKAM_EXPORT QDebug operator<<(QDebug dbg, const BatchToolSet& s);
// -------------------------------------------------------------------------------------------------------------
/** An indexed map of batch tools with settings.
......
Supports Markdown
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