diff options
author | Michele Calgaro <[email protected]> | 2023-11-24 10:55:57 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-24 10:55:57 +0900 |
commit | 8d79c40791fa0bcac4d4ce1dc7385b19e523ba08 (patch) | |
tree | aeb6e8f7de0507196578a04a8bdc804284d9fc80 /tdehtml/rendering/render_form.cpp | |
parent | 17a8fd0ec28f5efbc658892067bb5602b6a8e44c (diff) | |
download | tdelibs-8d79c40791fa0bcac4d4ce1dc7385b19e523ba08.tar.gz tdelibs-8d79c40791fa0bcac4d4ce1dc7385b19e523ba08.zip |
Replaced various '#define' with actual strings - part 3
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'tdehtml/rendering/render_form.cpp')
-rw-r--r-- | tdehtml/rendering/render_form.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tdehtml/rendering/render_form.cpp b/tdehtml/rendering/render_form.cpp index f28706bd3..63bba2914 100644 --- a/tdehtml/rendering/render_form.cpp +++ b/tdehtml/rendering/render_form.cpp @@ -263,7 +263,7 @@ void RenderSubmitButton::calcMinMaxWidth() raw = TQString::fromLatin1("X"); TQFontMetrics fm = pb->fontMetrics(); TQSize ts = fm.size( ShowPrefix, raw); - TQSize s(pb->style().tqsizeFromContents( TQStyle::CT_PushButton, pb, ts ) + TQSize s(pb->style().sizeFromContents( TQStyle::CT_PushButton, pb, ts ) .expandedTo(TQApplication::globalStrut())); int margin = pb->style().pixelMetric( TQStyle::PM_ButtonMargin, pb) + pb->style().pixelMetric( TQStyle::PM_DefaultFrameWidth, pb ) * 2; @@ -805,7 +805,7 @@ void RenderFileButton::calcMinMaxWidth() int h = fm.lineSpacing(); int w = fm.width( 'x' ) * (size > 0 ? size+1 : 17); // "some" KLineEdit* edit = static_cast<KURLRequester*>( m_widget )->lineEdit(); - TQSize s = edit->style().tqsizeFromContents(TQStyle::CT_LineEdit, + TQSize s = edit->style().sizeFromContents(TQStyle::CT_LineEdit, edit, TQSize(w + 2 + 2*edit->frameWidth(), kMax(h, 14) + 2 + 2*edit->frameWidth())) .expandedTo(TQApplication::globalStrut()); |