2020-06-05 05:42:12 -04:00
|
|
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
|
|
|
|
import QtQuick 2.12
|
|
|
|
import QtQuick.Layouts 1.12
|
|
|
|
|
|
|
|
HGridLayout {
|
2020-07-20 21:37:08 -04:00
|
|
|
readonly property real summedImplicitWidth:
|
|
|
|
utils.sumChildrenImplicitWidths(visibleChildren, columnSpacing)
|
2020-06-05 05:42:12 -04:00
|
|
|
|
2020-07-21 17:34:45 -04:00
|
|
|
readonly property bool vertical: flow === HGridLayout.TopToBottom
|
|
|
|
|
2020-07-12 00:25:57 -04:00
|
|
|
|
2020-06-05 05:42:12 -04:00
|
|
|
flow:
|
|
|
|
width >= summedImplicitWidth ?
|
2020-07-11 22:06:37 -04:00
|
|
|
HGridLayout.LeftToRight :
|
|
|
|
HGridLayout.TopToBottom
|
2020-06-05 05:42:12 -04:00
|
|
|
}
|