diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2020-12-20 13:15:09 +0100 |
---|---|---|
committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2021-01-20 17:28:10 +0100 |
commit | b002c21087e8bfafbcf967d43253bf861e94e6c8 (patch) | |
tree | 80c4903edd4122fa98b9e456b22afd6669cf6709 /mkspecs/features/mac/default_post.prf | |
parent | 427e639275be379e3577cd3b3c8a63a6b5e46d46 (diff) |
QPushButton: fix drawing pushbutton with a menu
Drawing a QPushButton with a menu results in a clipped label text and a
wrong aligned decoration and menu button.
The position of the menu button was calculated wrong (spacing has to be
subtracted since the start position is the right side). Also the text
label alignment was done before it was adjusted for the menu button
which results in an unaligned (in constrast to a pushbutton without a
menu) label and decoration.
Fixes: QTBUG-89619
Change-Id: I872d39ff2d8eb685fe6843e38c7f727868e1ee9a
Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Funning <huangyub@uniontech.com>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'mkspecs/features/mac/default_post.prf')
0 files changed, 0 insertions, 0 deletions