diff options
| author | Jan Arve Sæther <jan-arve.saether@qt.io> | 2022-08-22 14:11:50 +0200 |
|---|---|---|
| committer | Jan Arve Sæther <jan-arve.saether@qt.io> | 2022-12-08 01:01:11 +0100 |
| commit | 373b6e54dd3b6434ec427d4f5b01335cfaa90dea (patch) | |
| tree | eac6a3457da5991d6670020e9c919ac1cdc6036c /src/quicklayouts/qquickstacklayout.cpp | |
| parent | 73a3b69f9ae6d49cc04ce9834ab6f3b88d11e35b (diff) | |
Add {horizontal,vertical}StretchFactor
This utilizes the standard implementation of stretch factors that is
already in the QGridLayoutEngine
[ChangeLog][QtQuick][Layouts] Added support for stretch factors
Fixes: QTBUG-32923
Change-Id: I4afa7636dda465af2230c2919daa5c40831c44ae
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/quicklayouts/qquickstacklayout.cpp')
| -rw-r--r-- | src/quicklayouts/qquickstacklayout.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/quicklayouts/qquickstacklayout.cpp b/src/quicklayouts/qquickstacklayout.cpp index 217e1df406..e07a44053b 100644 --- a/src/quicklayouts/qquickstacklayout.cpp +++ b/src/quicklayouts/qquickstacklayout.cpp @@ -334,6 +334,10 @@ void QQuickStackLayout::rearrange(const QSizeF &newSize) QQuickLayout::rearrange(newSize); } +void QQuickStackLayout::setStretchFactor(QQuickItem * /*item*/, int /*stretchFactor*/, Qt::Orientation /*orient*/) +{ +} + void QQuickStackLayout::collectItemSizeHints(QQuickItem *item, QSizeF *sizeHints) { QQuickLayoutAttached *info = nullptr; |
