Bug 420305

Summary: ComboBox width should also include the indicator width in left/rightPadding
Product: [Frameworks and Libraries] frameworks-qqc2-desktop-style Reporter: Fab Stz <fabstz-it>
Component: generalAssignee: Marco Martin <notmart>
Status: CONFIRMED ---    
Severity: minor CC: a.stippich, kde, nate
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Fab Stz 2020-04-19 14:37:26 UTC
With an app using org.kde.desktop theme & using a Combobox component.
rightPadding doesn't include the width of the indicator.

If for example I want to size my ComboBox to the width of the largest element of the list, then I set the width of the combobox to the
"largestTextWidth" + leftPadding + rightPadding

When using themes like Universal, Default or Material... this works nicely. Actually they include the width of the "indicator" in leftPadding/rightPadding.
But with org.kde.desktop it's incorrect.

This is on KDE with Breeze theme (same problem with other themes, like QtCurve, but probably only Breeze is expected to be supported anyway)