diff options
author | Jan Arve Saether <jan-arve.saether@digia.com> | 2013-11-13 10:35:17 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-15 09:15:13 +0100 |
commit | de5b3780cf57154c0ae3bc59e125c12904856ae4 (patch) | |
tree | d513f5aec8b3df3a001a48a04ae7bce98ef1e0d3 /tests/auto/widgets/itemviews/qabstractitemview/tst_qabstractitemview.cpp | |
parent | 191f96cb8817a6d1632331c67f4f8d45535205e1 (diff) |
QFormLayout: Avoid assertion with negative spacings.
It's not really clear if styles *must* return a non-negative value for
QStyle::pixelMetric(PM_Layout{Vertical,Horizontal}Spacing), but both
QBoxLayout and QGridLayout seems to be robust enough to handle this.
They will simply make sure that the spacing is never negative.
We therefore make QFormLayout equally robust.
Task-number: QTBUG-34731
Change-Id: I62235bfcd8adf7757cf15bc9927b29650ae6459d
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'tests/auto/widgets/itemviews/qabstractitemview/tst_qabstractitemview.cpp')
0 files changed, 0 insertions, 0 deletions