From aa85254cd16cb870b8d1649ef1dbad09bd8491e8 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 1 Mar 2012 13:19:48 -0600 Subject: Rename additional global TQt functions --- kmymoney2/widgets/kaccounttemplateselector.cpp | 4 +-- kmymoney2/widgets/kguiutils.cpp | 2 +- kmymoney2/widgets/kmymoneyaccountcombo.cpp | 2 +- kmymoney2/widgets/kmymoneydateinput.cpp | 2 +- kmymoney2/widgets/kmymoneypriceview.cpp | 2 +- kmymoney2/widgets/register.cpp | 34 +++++++++++++------------- kmymoney2/widgets/transaction.cpp | 8 +++--- 7 files changed, 27 insertions(+), 27 deletions(-) (limited to 'kmymoney2/widgets') diff --git a/kmymoney2/widgets/kaccounttemplateselector.cpp b/kmymoney2/widgets/kaccounttemplateselector.cpp index 9b26503..430c2dc 100644 --- a/kmymoney2/widgets/kaccounttemplateselector.cpp +++ b/kmymoney2/widgets/kaccounttemplateselector.cpp @@ -184,7 +184,7 @@ void KAccountTemplateSelector::slotLoadTemplateList(void) TQStringList::iterator it; for(it = d->dirlist.begin(); it != d->dirlist.end(); ++it) { TQDir dir(*it); - // qDebug("Reading dir '%s' with %d entries", (*it).data(), dir.count()); + // tqDebug("Reading dir '%s' with %d entries", (*it).data(), dir.count()); dirs = dir.entryList("*", TQDir::Dirs); TQStringList::iterator it_d; for(it_d= dirs.begin(); it_d != dirs.end(); ++it_d) { @@ -214,7 +214,7 @@ void KAccountTemplateSelector::slotLoadTemplateList(void) TQString country = KGlobal::locale()->twoAlphaToCountryName((*it_d).upper()); d->countries[country] = *it_d; } else { - qDebug("'%s/%s' not scanned", (*it).data(), (*it_d).data()); + tqDebug("'%s/%s' not scanned", (*it).data(), (*it_d).data()); } } } diff --git a/kmymoney2/widgets/kguiutils.cpp b/kmymoney2/widgets/kguiutils.cpp index e8e8d3f..24bf3f6 100644 --- a/kmymoney2/widgets/kguiutils.cpp +++ b/kmymoney2/widgets/kguiutils.cpp @@ -82,7 +82,7 @@ void kMandatoryFieldGroup::add(TQWidget *widget) this, TQT_SLOT(changed())); else { - qWarning("MandatoryFieldGroup: unsupported class %s", + tqWarning("MandatoryFieldGroup: unsupported class %s", widget->className()); return; } diff --git a/kmymoney2/widgets/kmymoneyaccountcombo.cpp b/kmymoney2/widgets/kmymoneyaccountcombo.cpp index e37311c..3278db5 100644 --- a/kmymoney2/widgets/kmymoneyaccountcombo.cpp +++ b/kmymoney2/widgets/kmymoneyaccountcombo.cpp @@ -86,7 +86,7 @@ void KMyMoneyAccountCombo::setSelected(const TQString& id) MyMoneyAccount acc = MyMoneyFile::instance()->account(id); setSelected(acc); } catch(MyMoneyException *e) { - qDebug("Account '%s' not found in %s(%d)", id.data(), __FILE__, __LINE__); + tqDebug("Account '%s' not found in %s(%d)", id.data(), __FILE__, __LINE__); delete e; } } else { diff --git a/kmymoney2/widgets/kmymoneydateinput.cpp b/kmymoney2/widgets/kmymoneydateinput.cpp index 9203a76..9ae13ec 100644 --- a/kmymoney2/widgets/kmymoneydateinput.cpp +++ b/kmymoney2/widgets/kmymoneydateinput.cpp @@ -230,7 +230,7 @@ void kMyMoneyDateInput::resizeEvent(TQResizeEvent* ev) m_dateButton->setMaximumWidth(ev->size().height()); dateEdit->setMaximumHeight(ev->size().height()); - // qDebug("Received resize-event %d,%d", ev->size().width(), ev->size().height()); + // tqDebug("Received resize-event %d,%d", ev->size().width(), ev->size().height()); } diff --git a/kmymoney2/widgets/kmymoneypriceview.cpp b/kmymoney2/widgets/kmymoneypriceview.cpp index 091e255..851ca02 100644 --- a/kmymoney2/widgets/kmymoneypriceview.cpp +++ b/kmymoney2/widgets/kmymoneypriceview.cpp @@ -312,7 +312,7 @@ void KMyMoneyPriceView::slotDeletePrice(void) MyMoneyFile::instance()->removePrice(item->price()); ft.commit(); } catch(MyMoneyException *e) { - qDebug("Cannot delete price"); + tqDebug("Cannot delete price"); delete e; } } diff --git a/kmymoney2/widgets/register.cpp b/kmymoney2/widgets/register.cpp index ef1c956..5a0148c 100644 --- a/kmymoney2/widgets/register.cpp +++ b/kmymoney2/widgets/register.cpp @@ -204,7 +204,7 @@ bool ItemPtrVector::item_cmp(RegisterItem* i1, RegisterItem* i2) break; default: - qDebug("Invalid sort key %d", *it); + tqDebug("Invalid sort key %d", *it); break; } @@ -449,7 +449,7 @@ TypeGroupMarker::TypeGroupMarker(Register* parent, CashFlowDirection dir, MyMone } break; default: - qDebug("Unknown CashFlowDirection %d for TypeGroupMarker constructor", dir); + tqDebug("Unknown CashFlowDirection %d for TypeGroupMarker constructor", dir); break; } } @@ -511,7 +511,7 @@ void RegisterToolTip::maybeTip(const TQPoint& pos) return; TQPoint cpos = m_register->viewportToContents(pos); - // qDebug("RegisterToolTip::mayBeTip(%d,%d)", cpos.x(), cpos.y()); + // tqDebug("RegisterToolTip::mayBeTip(%d,%d)", cpos.x(), cpos.y()); int row = m_register->rowAt(cpos.y()); int col = m_register->columnAt(cpos.x()); RegisterItem* item = m_register->itemAtRow(row); @@ -521,8 +521,8 @@ void RegisterToolTip::maybeTip(const TQPoint& pos) TQPoint relPos(cpos.x() - m_register->columnPos(0), cpos.y() - m_register->rowPos(item->startRow())); row = row - item->startRow(); - // qDebug("row = %d, col = %d", row, col); - // qDebug("relpos = %d,%d", relPos.x(), relPos.y()); + // tqDebug("row = %d, col = %d", row, col); + // tqDebug("relpos = %d,%d", relPos.x(), relPos.y()); TQString msg; TQRect rect; if(!item->maybeTip(cpos, row, col, rect, msg)) @@ -625,15 +625,15 @@ void Register::dragMoveEvent(TQDragMoveEvent* event) void Register::dropEvent(TQDropEvent* event) { - qDebug("Register::dropEvent"); + tqDebug("Register::dropEvent"); if ( KURLDrag::canDecode(event) ) { event->ignore(); Transaction* t = dropTransaction(event->pos()); if(t && !t->isScheduled()) { - qDebug("Drop was ok"); + tqDebug("Drop was ok"); KURL::List urls; KURLDrag::decode(event, urls); - qDebug("List is '%s'", urls.toStringList().join(";").data()); + tqDebug("List is '%s'", urls.toStringList().join(";").data()); event->accept(); } } @@ -667,7 +667,7 @@ void Register::slotAutoColumnSizing(int section) } size += TQString("%1").arg((columnWidth(i) * 100) / w); } - qDebug("size = %s", size.data()); + tqDebug("size = %s", size.data()); m_account.setValue("kmm-ledger-column-width", size); } #endif @@ -1180,7 +1180,7 @@ void Register::updateRegister(bool forceUpdateRowHeight) int Register::rowHeightHint(void) const { if(!m_rowHeightHint) { - qDebug("Register::rowHeightHint(): m_rowHeightHint is zero!!"); + tqDebug("Register::rowHeightHint(): m_rowHeightHint is zero!!"); } return m_rowHeightHint; } @@ -1189,11 +1189,11 @@ void Register::paintCell(TQPainter* painter, int row, int col, const TQRect& r, { // determine the item that we need to paint in the row and call it's paintRegisterCell() method if((row < 0) || ((unsigned)row > m_itemIndex.size())) { - qDebug("Register::paintCell: row %d out of bounds %d", row, (int)m_itemIndex.size()); + tqDebug("Register::paintCell: row %d out of bounds %d", row, (int)m_itemIndex.size()); return; } - // qDebug("paintCell(%d,%d)", row, col); + // tqDebug("paintCell(%d,%d)", row, col); RegisterItem* const item = m_itemIndex[row]; item->paintRegisterCell(painter, row - item->startRow(), col, r, selected, cg); } @@ -1415,7 +1415,7 @@ void Register::repaintItems(RegisterItem* first, RegisterItem* last) if(last == 0) last = first; - // qDebug("repaintItems from row %d to row %d", first->startRow(), last->startRow()+last->numRowsRegister()-1); + // tqDebug("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) @@ -1877,7 +1877,7 @@ TQWidget* Register::cellWidget(int row, int col) const if(row > numRows() - 1 || col > numCols() - 1) { if(numRows() && numCols()) - qWarning("Register::cellWidget(%d,%d) out of bounds (%d,%d)", row, col, numRows(), numCols()); + tqWarning("Register::cellWidget(%d,%d) out of bounds (%d,%d)", row, col, numRows(), numCols()); return 0; } @@ -1897,7 +1897,7 @@ TQWidget* Register::cellWidget(int row, int col) const void Register::insertWidget(int row, int col, TQWidget* w) { if(row < 0 || col < 0 || row > numRows() - 1 || col > numCols() - 1) { - qWarning("Register::insertWidget(%d,%d) out of bounds", row, col); + tqWarning("Register::insertWidget(%d,%d) out of bounds", row, col); return; } @@ -1908,7 +1908,7 @@ void Register::insertWidget(int row, int col, TQWidget* w) void Register::clearCellWidget(int row, int col) { if(row < 0 || col < 0 || row > numRows() - 1 || col > numCols() - 1) { - qWarning("Register::clearCellWidget(%d,%d) out of bounds", row, col); + tqWarning("Register::clearCellWidget(%d,%d) out of bounds", row, col); return; } @@ -2243,7 +2243,7 @@ Transaction* Register::transactionFactory(Register *parent, const MyMoneyTransac case MyMoneyAccount::MoneyMarket: case MyMoneyAccount::Stock: default: - qDebug("Register::transactionFactory: invalid accountTypeE %d", parent->account().accountType()); + tqDebug("Register::transactionFactory: invalid accountTypeE %d", parent->account().accountType()); break; } return t; diff --git a/kmymoney2/widgets/transaction.cpp b/kmymoney2/widgets/transaction.cpp index b4ac7cd..00d0f56 100644 --- a/kmymoney2/widgets/transaction.cpp +++ b/kmymoney2/widgets/transaction.cpp @@ -615,7 +615,7 @@ void Transaction::arrangeWidget(TQTable* tbl, int row, int col, TQWidget* w) con // events will be directed to the edit widget w->removeEventFilter(tbl); } else - qDebug("No widget for %d,%d", row, col); + tqDebug("No widget for %d,%d", row, col); } bool Transaction::haveNumberField(void) const @@ -658,10 +658,10 @@ bool Transaction::maybeTip(const TQPoint& cpos, int row, int col, TQRect& r, TQS // check for detail column in row 0 of the transaction for a possible exclamation mark r = m_parent->cellGeometry(m_startRow + 0, col); - // qDebug("r is %d,%d,%d,%d", r.x(), r.y(), r.width(), r.height()); + // tqDebug("r is %d,%d,%d,%d", r.x(), r.y(), r.width(), r.height()); r.setBottomLeft(TQPoint(r.x() + (r.width() - h), r.y() + h)); - // qDebug("r is %d,%d,%d,%d", r.x(), r.y(), r.width(), r.height()); - // qDebug("p is in r = %d", r.contains(cpos)); + // tqDebug("r is %d,%d,%d,%d", r.x(), r.y(), r.width(), r.height()); + // tqDebug("p is in r = %d", r.contains(cpos)); if(r.contains(cpos) && m_erronous) { if(m_transaction.splits().count() < 2) { msg = TQString("%1").arg(i18n("Transaction is missing a category assignment.")); -- cgit v1.2.1