#include <kptcommand.h>
Inherits KPlato::NamedCommand.
Inheritance diagram for KPlato::ModifyAccountDescriptionCmd:
Public Member Functions | |
ModifyAccountDescriptionCmd (Part *part, Account *account, QString value, QString name=0) | |
void | execute () |
void | unexecute () |
Private Attributes | |
Account * | m_account |
QString | m_oldvalue |
QString | m_newvalue |
Definition at line 826 of file kptcommand.h.
KPlato::ModifyAccountDescriptionCmd::ModifyAccountDescriptionCmd | ( | Part * | part, | |
Account * | account, | |||
QString | value, | |||
QString | name = 0 | |||
) |
Definition at line 1710 of file kptcommand.cc.
References KPlato::Account::description(), m_newvalue, and m_oldvalue.
void KPlato::ModifyAccountDescriptionCmd::execute | ( | ) |
Definition at line 1718 of file kptcommand.cc.
References m_account, m_newvalue, KPlato::NamedCommand::setCommandType(), and KPlato::Account::setDescription().
void KPlato::ModifyAccountDescriptionCmd::unexecute | ( | ) |
Definition at line 1723 of file kptcommand.cc.
References m_account, m_oldvalue, KPlato::NamedCommand::setCommandType(), and KPlato::Account::setDescription().
QString KPlato::ModifyAccountDescriptionCmd::m_oldvalue [private] |
Definition at line 835 of file kptcommand.h.
Referenced by ModifyAccountDescriptionCmd(), and unexecute().
QString KPlato::ModifyAccountDescriptionCmd::m_newvalue [private] |
Definition at line 836 of file kptcommand.h.
Referenced by execute(), and ModifyAccountDescriptionCmd().