overte/scripts/system/settings/qml_widgets/SettingCenterContainer.qml
armored-dragon 83b2666fb5
Center container widget.
Replaced homepage with widget.
2025-03-30 09:54:13 -05:00

24 lines
561 B
QML

import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.3
ScrollView {
width: parent.width
height:parent.height
y: header.height
id: root
ColumnLayout {
width: parent.width
anchors.horizontalCenter: parent.horizontalCenter
spacing: 0
}
// For each child of index not of 0, append as child of index of 0.
// Append children of the custom element to the ColumnLayout.
Component.onCompleted: {
for (var i = 1; i < root.contentChildren.length; i++) {
root.contentChildren[i].parent = root.contentChildren[0]
}
}
}