diff options
Diffstat (limited to 'kmymoney2/widgets/register.cpp')
-rw-r--r-- | kmymoney2/widgets/register.cpp | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/kmymoney2/widgets/register.cpp b/kmymoney2/widgets/register.cpp index e448fe4..b01513e 100644 --- a/kmymoney2/widgets/register.cpp +++ b/kmymoney2/widgets/register.cpp @@ -124,7 +124,7 @@ void ItemPtrVector::sort(void) bool ItemPtrVector::item_cmp(RegisterItem* i1, RegisterItem* i2) { - const TQValueList<TransactionSortField>& sortOrder = i1->tqparent()->sortOrder(); + const TQValueList<TransactionSortField>& sortOrder = i1->parent()->sortOrder(); TQValueList<TransactionSortField>::const_iterator it; int rc = 0; bool ok1, ok2; @@ -220,10 +220,10 @@ bool ItemPtrVector::item_cmp(RegisterItem* i1, RegisterItem* i2) return rc < 0; } -GroupMarker::GroupMarker(Register *tqparent, const TQString& txt) : - RegisterItem(tqparent), +GroupMarker::GroupMarker(Register *parent, const TQString& txt) : + RegisterItem(parent), m_txt(txt), - m_drawCounter(tqparent->drawCounter()-1), // make sure we get painted the first time around + m_drawCounter(parent->drawCounter()-1), // make sure we get painted the first time around m_showDate(false) { int h; @@ -359,21 +359,21 @@ int GroupMarker::rowHeightHint(void) const return m_bg->height(); } -StatementGroupMarker::StatementGroupMarker(Register* tqparent, CashFlowDirection dir, const TQDate& date, const TQString& txt) : - FancyDateGroupMarker(tqparent, date, txt), +StatementGroupMarker::StatementGroupMarker(Register* parent, CashFlowDirection dir, const TQDate& date, const TQString& txt) : + FancyDateGroupMarker(parent, date, txt), m_dir(dir) { m_showDate = true; } -FancyDateGroupMarker::FancyDateGroupMarker(Register* tqparent, const TQDate& date, const TQString& txt) : - GroupMarker(tqparent, txt), +FancyDateGroupMarker::FancyDateGroupMarker(Register* parent, const TQDate& date, const TQString& txt) : + GroupMarker(parent, txt), m_date(date) { } -FiscalYearGroupMarker::FiscalYearGroupMarker(Register* tqparent, const TQDate& date, const TQString& txt) : - FancyDateGroupMarker(tqparent, date, txt) +FiscalYearGroupMarker::FiscalYearGroupMarker(Register* parent, const TQDate& date, const TQString& txt) : + FancyDateGroupMarker(parent, date, txt) { } @@ -383,8 +383,8 @@ void FiscalYearGroupMarker::setupColors(TQColorGroup& cg) } -SimpleDateGroupMarker::SimpleDateGroupMarker(Register* tqparent, const TQDate& date, const TQString& txt) : - FancyDateGroupMarker(tqparent, date, txt) +SimpleDateGroupMarker::SimpleDateGroupMarker(Register* parent, const TQDate& date, const TQString& txt) : + FancyDateGroupMarker(parent, date, txt) { } @@ -431,8 +431,8 @@ void SimpleDateGroupMarker::paintRegisterCell(TQPainter* painter, int row, int / painter->restore(); } -TypeGroupMarker::TypeGroupMarker(Register* tqparent, CashFlowDirection dir, MyMoneyAccount::accountTypeE accType) : - GroupMarker(tqparent), +TypeGroupMarker::TypeGroupMarker(Register* parent, CashFlowDirection dir, MyMoneyAccount::accountTypeE accType) : + GroupMarker(parent), m_dir(dir) { switch(dir) { @@ -454,18 +454,18 @@ TypeGroupMarker::TypeGroupMarker(Register* tqparent, CashFlowDirection dir, MyMo } } -PayeeGroupMarker::PayeeGroupMarker(Register* tqparent, const TQString& name) : - GroupMarker(tqparent, name) +PayeeGroupMarker::PayeeGroupMarker(Register* parent, const TQString& name) : + GroupMarker(parent, name) { } -CategoryGroupMarker::CategoryGroupMarker(Register* tqparent, const TQString& category) : - GroupMarker(tqparent, category) +CategoryGroupMarker::CategoryGroupMarker(Register* parent, const TQString& category) : + GroupMarker(parent, category) { } -ReconcileGroupMarker::ReconcileGroupMarker(Register* tqparent, MyMoneySplit::reconcileFlagE state) : - GroupMarker(tqparent), +ReconcileGroupMarker::ReconcileGroupMarker(Register* parent, MyMoneySplit::reconcileFlagE state) : + GroupMarker(parent), m_state(state) { switch(state) { @@ -490,7 +490,7 @@ ReconcileGroupMarker::ReconcileGroupMarker(Register* tqparent, MyMoneySplit::rec class RegisterToolTip : public TQToolTip { public: - RegisterToolTip(TQWidget* tqparent, Register* reg); + RegisterToolTip(TQWidget* parent, Register* reg); void maybeTip(const TQPoint& pos); virtual ~RegisterToolTip() {} @@ -498,8 +498,8 @@ private: Register* m_register; }; -RegisterToolTip::RegisterToolTip(TQWidget* tqparent, Register * reg) : - TQToolTip(tqparent), +RegisterToolTip::RegisterToolTip(TQWidget* parent, Register * reg) : + TQToolTip(parent), m_register(reg) { } @@ -535,8 +535,8 @@ void RegisterToolTip::maybeTip(const TQPoint& pos) return; } -Register::Register(TQWidget *tqparent, const char *name ) : - TransactionEditorContainer(tqparent, name), +Register::Register(TQWidget *parent, const char *name ) : + TransactionEditorContainer(parent, name), m_selectAnchor(0), m_focusItem(0), m_firstItem(0), @@ -2197,17 +2197,17 @@ void Register::keyPressEvent(TQKeyEvent* ev) } } -Transaction* Register::transactionFactory(Register *tqparent, const MyMoneyTransaction& transaction, const MyMoneySplit& split, int uniqueId) +Transaction* Register::transactionFactory(Register *parent, const MyMoneyTransaction& transaction, const MyMoneySplit& split, int uniqueId) { Transaction* t = 0; MyMoneySplit s = split; - if(tqparent->account() == MyMoneyAccount()) { - t = new KMyMoneyRegister::StdTransaction(tqparent, transaction, s, uniqueId); + if(parent->account() == MyMoneyAccount()) { + t = new KMyMoneyRegister::StdTransaction(parent, transaction, s, uniqueId); return t; } - switch(tqparent->account().accountType()) { + switch(parent->account().accountType()) { case MyMoneyAccount::Checkings: case MyMoneyAccount::Savings: case MyMoneyAccount::Cash: @@ -2221,29 +2221,29 @@ Transaction* Register::transactionFactory(Register *tqparent, const MyMoneyTrans case MyMoneyAccount::AssetLoan: case MyMoneyAccount::Equity: if(s.accountId().isEmpty()) - s.setAccountId(tqparent->account().id()); + s.setAccountId(parent->account().id()); if(s.isMatched()) - t = new KMyMoneyRegister::StdTransactionMatched(tqparent, transaction, s, uniqueId); + t = new KMyMoneyRegister::StdTransactionMatched(parent, transaction, s, uniqueId); else if(transaction.isImported()) - t = new KMyMoneyRegister::StdTransactionDownloaded(tqparent, transaction, s, uniqueId); + t = new KMyMoneyRegister::StdTransactionDownloaded(parent, transaction, s, uniqueId); else - t = new KMyMoneyRegister::StdTransaction(tqparent, transaction, s, uniqueId); + t = new KMyMoneyRegister::StdTransaction(parent, transaction, s, uniqueId); break; case MyMoneyAccount::Investment: if(s.isMatched()) - t = new KMyMoneyRegister::InvestTransaction/* Matched */(tqparent, transaction, s, uniqueId); + t = new KMyMoneyRegister::InvestTransaction/* Matched */(parent, transaction, s, uniqueId); else if(transaction.isImported()) - t = new KMyMoneyRegister::InvestTransactionDownloaded(tqparent, transaction, s, uniqueId); + t = new KMyMoneyRegister::InvestTransactionDownloaded(parent, transaction, s, uniqueId); else - t = new KMyMoneyRegister::InvestTransaction(tqparent, transaction, s, uniqueId); + t = new KMyMoneyRegister::InvestTransaction(parent, transaction, s, uniqueId); break; case MyMoneyAccount::CertificateDep: case MyMoneyAccount::MoneyMarket: case MyMoneyAccount::Stock: default: - qDebug("Register::transactionFactory: invalid accountTypeE %d", tqparent->account().accountType()); + qDebug("Register::transactionFactory: invalid accountTypeE %d", parent->account().accountType()); break; } return t; |