20 #include <QListIterator> 28 :QList<
UndoAction *>(), m_description(name), m_aborted(false)
37 if (action)
delete action;
45 QListIterator<UndoAction *> it(*
this);
46 while (it.hasNext()) {
57 QListIterator<UndoAction *> it(*
this);
58 while (it.hasNext()) {
72 QListIterator<UndoAction *> it(*
this);
73 while (it.hasNext()) {
79 if (str.contains(
_(
", ") + d) || (str == d))
continue;
82 if (str.length()) str +=
_(
", ");
91 if (isEmpty())
return false;
92 QListIterator<UndoAction *> it(*
this);
93 while (it.hasNext()) {
95 if (!action)
continue;
111 if (isEmpty())
return;
113 QListIterator<UndoAction *> it(*
this);
115 while (it.hasPrevious()) {
118 if (!action)
continue;
119 action->
dump(
_(
" "));
UndoTransaction(const QString &name)
bool containsModification() const
virtual void dump(const QString &indent)
virtual void dump(const QString &indent)
virtual qint64 redoSize()=0
virtual QString description()=0
virtual ~UndoTransaction()
virtual bool containsModification() const
virtual qint64 undoSize()=0