diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-11-09 15:57:42 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2018-11-19 11:45:09 +0000 |
commit | 199f9c54484b0dae3bc81f83c880a965192ecb24 (patch) | |
tree | 558d2d26da0ffcecd6485369535dad6b1da327be /src/widgets/dialogs/qmessagebox.cpp | |
parent | 4d180586cddbd71a67c83246db3bec1caa595e05 (diff) |
Fix vertical alignment of inline images
Inline images can have 4 different alignments. Unfortunately,
AlignTop and AlignBottom can only be set once we have laid out
the whole line and know the total height of the line, as one
could otherwise end up with lines that are too high.
To fix this, position the images for these cases in a second loop
after we have calculated the length of the line and the maximal
image height in that line.
Task-number: QTBUG-59310
Change-Id: I1fd4cd39e43a13d1967b9f5c9ce8270a99269cd9
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'src/widgets/dialogs/qmessagebox.cpp')
0 files changed, 0 insertions, 0 deletions