summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/kmymoneycalendar.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:05:00 -0600
committerSlávek Banko <slavek.banko@axis.cz>2012-06-06 03:55:17 +0200
commitfd30a5e3950c7412e6b02bdad34acaebf01ac78e (patch)
tree48b1cbf25403a8b3551961c6c03ccc4ca6ccc567 /kmymoney2/widgets/kmymoneycalendar.cpp
parent1de308fd3b1aacec7769d867a6eeaa98af69c61c (diff)
downloadkmymoney-fd30a5e3950c7412e6b02bdad34acaebf01ac78e.tar.gz
kmymoney-fd30a5e3950c7412e6b02bdad34acaebf01ac78e.zip
Rename obsolete tq methods to standard names
(cherry picked from commit 81ed92522a3cc6b80e9d790bd7a52b0eb4d412b9)
Diffstat (limited to 'kmymoney2/widgets/kmymoneycalendar.cpp')
-rw-r--r--kmymoney2/widgets/kmymoneycalendar.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kmymoney2/widgets/kmymoneycalendar.cpp b/kmymoney2/widgets/kmymoneycalendar.cpp
index 569c001..92ae0d2 100644
--- a/kmymoney2/widgets/kmymoneycalendar.cpp
+++ b/kmymoney2/widgets/kmymoneycalendar.cpp
@@ -210,8 +210,8 @@ kMyMoneyCalendar::resizeEvent(TQResizeEvent*)
// ----- calculate size of the month button:
for(count=0; count<NoOfButtons; ++count) {
if(buttons[count]==selectMonth) {
- TQSize metricBound = tqstyle().tqsizeFromContents(TQStyle::CT_ToolButton, selectMonth, maxMonthRect);
- sizes[count].setWidth(TQMAX(metricBound.width(), maxMonthRect.width()+2*TQApplication::tqstyle().pixelMetric(TQStyle::PM_ButtonMargin)));
+ TQSize metricBound = style().tqsizeFromContents(TQStyle::CT_ToolButton, selectMonth, maxMonthRect);
+ sizes[count].setWidth(TQMAX(metricBound.width(), maxMonthRect.width()+2*TQApplication::style().pixelMetric(TQStyle::PM_ButtonMargin)));
}
}
// ----- place the buttons:
@@ -498,8 +498,8 @@ kMyMoneyCalendar::sizeHint() const
if(buttons[count]==selectMonth)
{
- TQSize metricBound = tqstyle().tqsizeFromContents(TQStyle::CT_ToolButton, selectMonth, maxMonthRect);
- cx+=TQMAX(metricBound.width(), maxMonthRect.width()+2*TQApplication::tqstyle().pixelMetric(TQStyle::PM_ButtonMargin));
+ TQSize metricBound = style().tqsizeFromContents(TQStyle::CT_ToolButton, selectMonth, maxMonthRect);
+ cx+=TQMAX(metricBound.width(), maxMonthRect.width()+2*TQApplication::style().pixelMetric(TQStyle::PM_ButtonMargin));
} else {
cx+=sizes[count].width();
}