diff options
author | John Tapsell <john.tapsell.ext@basyskom.de> | 2010-11-15 11:55:06 (GMT) |
---|---|---|
committer | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2010-11-15 11:55:06 (GMT) |
commit | 604c51f1fc5c79b7fad12cda911b06b9e6e5005f (patch) | |
tree | 6960a2ee703b794c9ee45b9ba8f92a037f6a9374 /src/gui/graphicsview/qgridlayoutengine_p.h | |
parent | f9d1832c72f6717c977bafdff141225f25a3d576 (diff) | |
download | Qt-604c51f1fc5c79b7fad12cda911b06b9e6e5005f.zip Qt-604c51f1fc5c79b7fad12cda911b06b9e6e5005f.tar.gz Qt-604c51f1fc5c79b7fad12cda911b06b9e6e5005f.tar.bz2 |
Fix item alignment in layouts bigger than the items thay they contain
Task-number: QTBUG-13551
Task-number: QTBUG-7756
Merge-request: 894
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
Diffstat (limited to 'src/gui/graphicsview/qgridlayoutengine_p.h')
-rw-r--r-- | src/gui/graphicsview/qgridlayoutengine_p.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/graphicsview/qgridlayoutengine_p.h b/src/gui/graphicsview/qgridlayoutengine_p.h index 02c74b0..44efbba 100644 --- a/src/gui/graphicsview/qgridlayoutengine_p.h +++ b/src/gui/graphicsview/qgridlayoutengine_p.h @@ -224,13 +224,16 @@ public: typedef QMap<QPair<int, int>, QGridLayoutMultiCellData> MultiCellMap; +class QGridLayoutRowInfo; + class QGridLayoutRowData { public: void reset(int count); - void distributeMultiCells(); + void distributeMultiCells(const QGridLayoutRowInfo &rowInfo); void calculateGeometries(int start, int end, qreal targetSize, qreal *positions, qreal *sizes, - qreal *descents, const QGridLayoutBox &totalBox); + qreal *descents, const QGridLayoutBox &totalBox, + const QGridLayoutRowInfo &rowInfo); QGridLayoutBox totalBox(int start, int end) const; void stealBox(int start, int end, int which, qreal *positions, qreal *sizes); |