diff options
author | Aleix Pol <aleixpol@kde.org> | 2015-10-30 15:58:10 +0100 |
---|---|---|
committer | Aleix Pol Gonzalez <aleixpol@kde.org> | 2015-11-16 16:01:03 +0000 |
commit | d2792d2ed90e1e2789aa80f1667d6e67cd35af66 (patch) | |
tree | ac06248842a9f8b5f7c7c3b83a6ed30a78fc6bb5 /src/corelib/statemachine/qstatemachine_p.h | |
parent | d0f57439d02582cf7564d1509d13f715eadc7f05 (diff) |
Fix screenForGeometry on a corner case
QRect only deals with integers, and I had a window set on the corner and
without a size. When this screen was created, it was reported to be on the
wrong screen, thus created there wrong.
The reason for this is that ::center is not prepared for this use.
QRect(QPoint(500,500), QSize()).center() is QRect(499, 499)
Change-Id: I24e57182f84873306f180749e96368d6da1147a9
Reviewed-by: Paul Olav Tvete <paul.tvete@theqtcompany.com>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
Diffstat (limited to 'src/corelib/statemachine/qstatemachine_p.h')
0 files changed, 0 insertions, 0 deletions