summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/widgets')
-rw-r--r--kmymoney2/widgets/kmymoneyaccounttreebase.cpp2
-rw-r--r--kmymoney2/widgets/kmymoneycalendar.cpp4
-rw-r--r--kmymoney2/widgets/register.cpp6
3 files changed, 6 insertions, 6 deletions
diff --git a/kmymoney2/widgets/kmymoneyaccounttreebase.cpp b/kmymoney2/widgets/kmymoneyaccounttreebase.cpp
index 274a629..099f7d8 100644
--- a/kmymoney2/widgets/kmymoneyaccounttreebase.cpp
+++ b/kmymoney2/widgets/kmymoneyaccounttreebase.cpp
@@ -518,7 +518,7 @@ void KMyMoneyAccountTreeBase::viewportPaintEvent(TQPaintEvent* e)
TQPainter painter(viewport());
// 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);
}
}
diff --git a/kmymoney2/widgets/kmymoneycalendar.cpp b/kmymoney2/widgets/kmymoneycalendar.cpp
index 7a4158a..74b3ea1 100644
--- a/kmymoney2/widgets/kmymoneycalendar.cpp
+++ b/kmymoney2/widgets/kmymoneycalendar.cpp
@@ -214,7 +214,7 @@ kMyMoneyCalendar::resizeEvent(TQResizeEvent*)
// ----- calculate size of the month button:
for(count=0; count<NoOfButtons; ++count) {
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)));
}
}
@@ -502,7 +502,7 @@ kMyMoneyCalendar::sizeHint() const
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));
} else {
cx+=sizes[count].width();
diff --git a/kmymoney2/widgets/register.cpp b/kmymoney2/widgets/register.cpp
index 7ea8796..40ec31b 100644
--- a/kmymoney2/widgets/register.cpp
+++ b/kmymoney2/widgets/register.cpp
@@ -1889,7 +1889,7 @@ TQWidget* Register::cellWidget(int row, int col) const
return 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;
it_w = m_cellWidgets.find(idx);
@@ -1905,7 +1905,7 @@ void Register::insertWidget(int row, int col, TQWidget* w)
return;
}
- TQPair<int, int> idx = tqMakePair(row, col);
+ TQPair<int, int> idx = qMakePair(row, col);
m_cellWidgets[idx] = w;
}
@@ -1916,7 +1916,7 @@ void Register::clearCellWidget(int row, int col)
return;
}
- TQPair<int, int> idx = tqMakePair(row, col);
+ TQPair<int, int> idx = qMakePair(row, col);
TQMap<TQPair<int, int>, TQWidget*>::iterator it_w;
it_w = m_cellWidgets.find(idx);