Replaced various '#define' with actual strings - part 3

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 9bb2179ec0)
r14.1.x
Michele Calgaro 1 year ago
parent 483ebca4c2
commit 2889777f69
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -3242,7 +3242,7 @@ void KMyMoney2App::slotAccountReconcileFinish(void)
file->modifyTransaction(t); file->modifyTransaction(t);
// ... and the list // ... and the list
(*it) = tqMakePair(t, sp); (*it) = qMakePair(t, sp);
} }
ft.commit(); ft.commit();

@ -790,7 +790,7 @@ void MyMoneyDatabaseMgr::transactionList(TQValueList<TQPair<MyMoneyTransaction,
if(filter.match(*it_t)) { if(filter.match(*it_t)) {
TQValueList<MyMoneySplit>::const_iterator it_s; TQValueList<MyMoneySplit>::const_iterator it_s;
for(it_s = filter.matchingSplits().begin(); it_s != filter.matchingSplits().end(); ++it_s) { for(it_s = filter.matchingSplits().begin(); it_s != filter.matchingSplits().end(); ++it_s) {
list.append(tqMakePair(*it_t, *it_s)); list.append(qMakePair(*it_t, *it_s));
} }
} }
} }

@ -803,7 +803,7 @@ void MyMoneySeqAccessMgr::transactionList(TQValueList< TQPair<MyMoneyTransaction
if(filter.match(*it_t)) { if(filter.match(*it_t)) {
TQValueList<MyMoneySplit>::const_iterator it_s; TQValueList<MyMoneySplit>::const_iterator it_s;
for(it_s = filter.matchingSplits().begin(); it_s != filter.matchingSplits().end(); ++it_s) { for(it_s = filter.matchingSplits().begin(); it_s != filter.matchingSplits().end(); ++it_s) {
list.append(tqMakePair(*it_t, *it_s)); list.append(qMakePair(*it_t, *it_s));
} }
} }
} }

@ -518,7 +518,7 @@ void KMyMoneyAccountTreeBase::viewportPaintEvent(TQPaintEvent* e)
TQPainter painter(viewport()); TQPainter painter(viewport());
// This is where we actually draw the drop-highlighter // This is where we actually draw the drop-highlighter
style().tqdrawPrimitive(TQStyle::PE_FocusRect, &painter, m_lastDropHighlighter, colorGroup(), style().drawPrimitive(TQStyle::PE_FocusRect, &painter, m_lastDropHighlighter, colorGroup(),
TQStyle::Style_FocusAtBorder); TQStyle::Style_FocusAtBorder);
} }
} }

@ -214,7 +214,7 @@ kMyMoneyCalendar::resizeEvent(TQResizeEvent*)
// ----- calculate size of the month button: // ----- calculate size of the month button:
for(count=0; count<NoOfButtons; ++count) { for(count=0; count<NoOfButtons; ++count) {
if(buttons[count]==selectMonth) { if(buttons[count]==selectMonth) {
TQSize metricBound = style().tqsizeFromContents(TQStyle::CT_ToolButton, selectMonth, maxMonthRect); TQSize metricBound = style().sizeFromContents(TQStyle::CT_ToolButton, selectMonth, maxMonthRect);
sizes[count].setWidth(TQMAX(metricBound.width(), maxMonthRect.width()+2*TQApplication::style().pixelMetric(TQStyle::PM_ButtonMargin))); sizes[count].setWidth(TQMAX(metricBound.width(), maxMonthRect.width()+2*TQApplication::style().pixelMetric(TQStyle::PM_ButtonMargin)));
} }
} }
@ -502,7 +502,7 @@ kMyMoneyCalendar::sizeHint() const
if(buttons[count]==selectMonth) if(buttons[count]==selectMonth)
{ {
TQSize metricBound = style().tqsizeFromContents(TQStyle::CT_ToolButton, selectMonth, maxMonthRect); TQSize metricBound = style().sizeFromContents(TQStyle::CT_ToolButton, selectMonth, maxMonthRect);
cx+=TQMAX(metricBound.width(), maxMonthRect.width()+2*TQApplication::style().pixelMetric(TQStyle::PM_ButtonMargin)); cx+=TQMAX(metricBound.width(), maxMonthRect.width()+2*TQApplication::style().pixelMetric(TQStyle::PM_ButtonMargin));
} else { } else {
cx+=sizes[count].width(); cx+=sizes[count].width();

@ -1889,7 +1889,7 @@ TQWidget* Register::cellWidget(int row, int col) const
return 0; return 0;
TQWidget* w = 0; TQWidget* w = 0;
TQPair<int, int> idx = tqMakePair(row, col); TQPair<int, int> idx = qMakePair(row, col);
TQMap<TQPair<int, int>, TQWidget*>::const_iterator it_w; TQMap<TQPair<int, int>, TQWidget*>::const_iterator it_w;
it_w = m_cellWidgets.find(idx); it_w = m_cellWidgets.find(idx);
@ -1905,7 +1905,7 @@ void Register::insertWidget(int row, int col, TQWidget* w)
return; return;
} }
TQPair<int, int> idx = tqMakePair(row, col); TQPair<int, int> idx = qMakePair(row, col);
m_cellWidgets[idx] = w; m_cellWidgets[idx] = w;
} }
@ -1916,7 +1916,7 @@ void Register::clearCellWidget(int row, int col)
return; return;
} }
TQPair<int, int> idx = tqMakePair(row, col); TQPair<int, int> idx = qMakePair(row, col);
TQMap<TQPair<int, int>, TQWidget*>::iterator it_w; TQMap<TQPair<int, int>, TQWidget*>::iterator it_w;
it_w = m_cellWidgets.find(idx); it_w = m_cellWidgets.find(idx);

Loading…
Cancel
Save