20 #include "FdCommandsJournal.hpp"
21 #include "FdModelJournal.hpp"
22 #include "FdItemJournal.hpp"
25 QUndoCommand(parent), mJournal(journal), mEntry(entry), mColumn(column), mNewValue(newValue)
27 mOldValue = mJournal->data(mEntry, mColumn);
31 setText(QObject::tr(
"change date",
"Will appear like this : Undo/Redo change date."));
34 setText(QObject::tr(
"change object",
"Will appear like this : Undo/Redo change object."));
37 setText(QObject::tr(
"change label",
"Will appear like this : Undo/Redo change label."));
40 case JournalDebitLabel:
41 setText(QObject::tr(
"change debit account",
"Will appear like this : Undo/Redo change debit account."));
44 case JournalCreditLabel:
45 setText(QObject::tr(
"change credit account",
"Will appear like this : Undo/Redo change credit account."));
48 setText(QObject::tr(
"change amount",
"Will appear like this : Undo/Redo change amount."));
65 setText(QObject::tr(
"remove %n row(s)",
"Undo/redo remove rows from the journal.", mEntries.size()));