From 24226bb5f595581a239356c18a338783a85349ca Mon Sep 17 00:00:00 2001 From: Tang Haixiang Date: Mon, 8 Mar 2021 19:49:44 +0800 Subject: Add setting the ICON size attribute in lineedit to the style plugin When the font is large enough, using PM_SmallIconSize will get a large lineedit,but the icon is very small. This is very unsightly, and the style plug-in hopes to be able to define the size of the icon by itself. Change-Id: I0e35b331301472541d3378e748dbcd074d5419a2 Reviewed-by: Volker Hilsheimer --- src/widgets/styles/qfusionstyle.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/widgets/styles/qfusionstyle.cpp') diff --git a/src/widgets/styles/qfusionstyle.cpp b/src/widgets/styles/qfusionstyle.cpp index 5772c7d4c4..51cd5109a0 100644 --- a/src/widgets/styles/qfusionstyle.cpp +++ b/src/widgets/styles/qfusionstyle.cpp @@ -3045,6 +3045,9 @@ int QFusionStyle::pixelMetric(PixelMetric metric, const QStyleOption *option, co case PM_ListViewIconSize: val = 24; break; + case PM_LineEditIconSize: + val = 24; + break; case PM_DialogButtonsSeparator: case PM_ScrollBarSliderMin: val = 26; -- cgit v1.2.3