diff options
author | Tang Haixiang <tanghaixiang@uniontech.com> | 2021-03-08 19:49:44 +0800 |
---|---|---|
committer | Tang Haixiang <tanghaixiang@uniontech.com> | 2021-03-12 08:39:04 +0800 |
commit | 24226bb5f595581a239356c18a338783a85349ca (patch) | |
tree | 1f27498d130fc69f8c98c0a911259bbb9c4d824c /src/widgets/styles/qfusionstyle.cpp | |
parent | 674747bac1c8b57d4940de2ee68b6b562dfcad61 (diff) |
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 <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/widgets/styles/qfusionstyle.cpp')
-rw-r--r-- | src/widgets/styles/qfusionstyle.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; |