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