diff options
Diffstat (limited to 'kplato/kptcalendarpanel.cpp')
-rw-r--r-- | kplato/kptcalendarpanel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kplato/kptcalendarpanel.cpp b/kplato/kptcalendarpanel.cpp index 8717f187..4c98fac0 100644 --- a/kplato/kptcalendarpanel.cpp +++ b/kplato/kptcalendarpanel.cpp @@ -174,7 +174,7 @@ CalendarPanel::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))); } } @@ -432,7 +432,7 @@ CalendarPanel::sizeHint() const sizes[count] = TQSize(0,0); 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(); |