summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows/qwindowswindow.cpp
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2013-10-23 00:28:17 +1100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-23 10:54:44 +0200
commit5d8a882c11201a29475c5ea71cfb76c9de6573f5 (patch)
tree89e58af5ec5b0f58fb815257d19996ab5fa177ca /src/plugins/platforms/windows/qwindowswindow.cpp
parentaa7fa093126f4ce9204b0d8efa7f9e8762847905 (diff)
Fix misaligned selection region with text when centered
If the text is centered, the x/y position in the selection QRectF may be a multiple of 0.5 which is rounded up. This rounding causes misalignment of the selection region with the text. The alignment is fixed by using qFloor on the x and y components. Task-number: QTBUG-34218 Task-number: QTBUG-34234 Change-Id: I4f2fadeb38602f62a93773c6e5faecf03b28069f Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowswindow.cpp')
0 files changed, 0 insertions, 0 deletions