diff options
author | Jan Arve Saether <jan-arve.saether@theqtcompany.com> | 2014-11-25 12:15:37 +0100 |
---|---|---|
committer | Jan Arve Sæther <jan-arve.saether@theqtcompany.com> | 2015-02-09 12:06:34 +0000 |
commit | 68293395ed6c513703a206389734201d3202c30c (patch) | |
tree | 3dfcc1f6d5d4b702b905579344f48a3d58dba32a /src/dbus/qdbusabstractinterface.cpp | |
parent | 18aae36a90c0753f1b1e615ba8437d8ebd1bd2fb (diff) | |
download | qtbase-68293395ed6c513703a206389734201d3202c30c.tar.gz |
Add support for snapping to pixel grid
This enables us to do more intelligent distribution than simply doing the
rounding on each individual items geometry (which often leads to larger
spacings than specified).
Instead of doing the rounding on the output geometries, we now do the
snapping inside the layout engine. This allows us to do more intelligent
distribution of items, and spacings should always be respected.
There are some cases where items with fractional size hints might overlap
with less than a pixel. This was also the case before this patch. Those
cases are impossible to fix properly, since fractional size hints
conflicts with the snapping in some cases.
(Fractional size hints is normal for Text items.)
Task-number: QTBUG-41216
Change-Id: I01a8bc3529f0b8b028d6eb0a530c751b67ac6f4e
Reviewed-by: Paul Olav Tvete <paul.tvete@theqtcompany.com>
Diffstat (limited to 'src/dbus/qdbusabstractinterface.cpp')
0 files changed, 0 insertions, 0 deletions