From 6aa61ac2c4eb5a0c0882b2255a9dd6789a428bc7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 7 Jul 2011 21:14:06 +0000 Subject: Rename incorrect instances of tqrepaint[...] to repaint[...] git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1240369 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kmymoney2/widgets/register.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'kmymoney2/widgets/register.cpp') diff --git a/kmymoney2/widgets/register.cpp b/kmymoney2/widgets/register.cpp index 0494d51..79293e1 100644 --- a/kmymoney2/widgets/register.cpp +++ b/kmymoney2/widgets/register.cpp @@ -1203,7 +1203,7 @@ void Register::focusInEvent(TQFocusEvent* ev) TQTable::focusInEvent(ev); if(m_focusItem) { m_focusItem->setFocus(true, false); - tqrepaintItems(m_focusItem); + repaintItems(m_focusItem); } } @@ -1211,7 +1211,7 @@ void Register::focusOutEvent(TQFocusEvent* ev) { if(m_focusItem) { m_focusItem->setFocus(false, false); - tqrepaintItems(m_focusItem); + repaintItems(m_focusItem); } TQTable::focusOutEvent(ev); } @@ -1402,7 +1402,7 @@ void Register::adjustColumn(int col) #endif } -void Register::tqrepaintItems(RegisterItem* first, RegisterItem* last) +void Register::repaintItems(RegisterItem* first, RegisterItem* last) { if(first == 0 && last == 0) { first = firstItem(); @@ -1415,7 +1415,7 @@ void Register::tqrepaintItems(RegisterItem* first, RegisterItem* last) if(last == 0) last = first; - // qDebug("tqrepaintItems from row %d to row %d", first->startRow(), last->startRow()+last->numRowsRegister()-1); + // qDebug("repaintItems from row %d to row %d", first->startRow(), last->startRow()+last->numRowsRegister()-1); // the following code is based on code I found in // TQTable::cellGeometry() and TQTable::updateCell() (ipwizard) @@ -1477,7 +1477,7 @@ void Register::doSelectItems(int from, int to, bool selected) // anything changed? if(firstItem || lastItem) - tqrepaintItems(firstItem, lastItem); + repaintItems(firstItem, lastItem); } RegisterItem* Register::itemAtRow(int row) const @@ -1618,7 +1618,7 @@ bool Register::setFocusItem(RegisterItem* focusItem) m_focusItem->setFocus(false); // issue a tqrepaint here only if we move the focus if(m_focusItem != focusItem) - tqrepaintItems(m_focusItem); + repaintItems(m_focusItem); } Transaction* item = dynamic_cast(focusItem); if(m_focusItem != focusItem && item) { @@ -1630,7 +1630,7 @@ bool Register::setFocusItem(RegisterItem* focusItem) if(m_listsDirty) updateRegister(KMyMoneyGlobalSettings::ledgerLens() | !KMyMoneyGlobalSettings::transactionForm()); ensureItemVisible(m_focusItem); - tqrepaintItems(m_focusItem); + repaintItems(m_focusItem); return true; } else return false; @@ -1980,7 +1980,7 @@ void Register::slotToggleErronousTransactions(void) KMyMoneyRegister::RegisterItem* p = m_firstErronous; while(p && p->prevItem() != m_lastErronous) { if(p->isErronous()) - tqrepaintItems(p); + repaintItems(p); p = p->nextItem(); } -- cgit v1.2.1