diff options
author | Timothy Pearson <[email protected]> | 2011-12-21 14:05:00 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-21 14:05:00 -0600 |
commit | 81ed92522a3cc6b80e9d790bd7a52b0eb4d412b9 (patch) | |
tree | 984088ab9d226a14ccfea73720e580c16884702f /kmymoney2/widgets/kmymoneycalendar.cpp | |
parent | c70e40bd3f54a2c4d9ef57a36f19c996f4e00ed6 (diff) | |
download | kmymoney-81ed92522a3cc6b80e9d790bd7a52b0eb4d412b9.tar.gz kmymoney-81ed92522a3cc6b80e9d790bd7a52b0eb4d412b9.zip |
Rename obsolete tq methods to standard names
Diffstat (limited to 'kmymoney2/widgets/kmymoneycalendar.cpp')
-rw-r--r-- | kmymoney2/widgets/kmymoneycalendar.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kmymoney2/widgets/kmymoneycalendar.cpp b/kmymoney2/widgets/kmymoneycalendar.cpp index 61b91fd..7aae4ad 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(); } |