summaryrefslogtreecommitdiffstats
path: root/kplato/kptcalendarpanel.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-24 10:47:46 +0900
committerMichele Calgaro <[email protected]>2023-11-24 22:32:24 +0900
commitf9893e5b16c7694da25e60805fe751691e127e85 (patch)
tree2b204fdab8798eaed0346d1b24bb646c6c89085c /kplato/kptcalendarpanel.cpp
parent8263fdf7603821cad365e436ab78557f40a9e9db (diff)
downloadkoffice-f9893e5b16c7694da25e60805fe751691e127e85.tar.gz
koffice-f9893e5b16c7694da25e60805fe751691e127e85.zip
Replaced various '#define' with actual strings - part 3
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit dcc4dc7a89e5f5f7fb4217815b892f4b0106d5a0)
Diffstat (limited to 'kplato/kptcalendarpanel.cpp')
-rw-r--r--kplato/kptcalendarpanel.cpp4
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();