diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2016-07-20 12:55:27 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2016-07-20 11:45:05 +0000 |
commit | 398727d703941c9708c54bc1f9c35e8ddff41607 (patch) | |
tree | b9c08f689f4acd885dc66e8d4d7e46133af7b154 | |
parent | 9245911e1ff533743341a9d7533d028bb3932515 (diff) | |
download | qttools-398727d703941c9708c54bc1f9c35e8ddff41607.tar.gz |
qtdiag: Fix output of screen geometries for negative coordinates
Use forcesign to format the screen position correctly
in multiple monitor setups where the primary monitor is on the right.
Change-Id: I6a4161e326dc3ad220bd9b1e60d8ca5bb27f6f49
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
-rw-r--r-- | src/qtdiag/qtdiag.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qtdiag/qtdiag.cpp b/src/qtdiag/qtdiag.cpp index 901df8f0b..cf20901b4 100644 --- a/src/qtdiag/qtdiag.cpp +++ b/src/qtdiag/qtdiag.cpp @@ -94,7 +94,7 @@ QTextStream &operator<<(QTextStream &str, const QDpi &d) QTextStream &operator<<(QTextStream &str, const QRect &r) { - str << r.size() << '+' << r.x() << '+' << r.y(); + str << r.size() << forcesign << r.x() << r.y() << noforcesign; return str; } |