diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2019-02-02 22:03:42 +0100 |
---|---|---|
committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2019-02-13 05:55:20 +0000 |
commit | d99162754f225ca98318e96184e80a57c33fa1ed (patch) | |
tree | d1464b26e40e8448ea97e3dd4af1b942483728aa /src/corelib/kernel/qmath.cpp | |
parent | 568bc974d7d89f8d12bc4877c59e4291fe582e8b (diff) |
QStyleSheet/QToolbox: don't overlap text and icon
When an icon was specified with a style sheet, the content rect for the
toolbox label was not adjusted which results in an overlapping of the
text and the icon.
Fix it by adjusting the rect used by drawing the label when an icon is
specified with a style sheet.
Fixes: QTBUG-40871
Change-Id: I088b319e6355d78066d0bc4472882a5d9a599091
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Reviewed-by: Vitaly Fanaskov <vitaly.fanaskov@qt.io>
Diffstat (limited to 'src/corelib/kernel/qmath.cpp')
0 files changed, 0 insertions, 0 deletions