boxes: add spacing prop

This commit is contained in:
end-4
2026-03-09 23:27:11 +01:00
parent 6952d89a7f
commit 6bd6f30a5e
2 changed files with 10 additions and 0 deletions
@@ -5,7 +5,12 @@ import QtQuick
// Qt Row is just a locked down Grid smh
// Calling it a Box because that's how row-or-column widget is called in Gtk
Grid {
id: root
property bool vertical: false
columns: vertical ? 1 : -1
rows: vertical ? -1 : 1
property alias spacing: root.rowSpacing
columnSpacing: rowSpacing
}
@@ -7,7 +7,12 @@ import QtQuick.Layouts
// Qt Row is just a locked down Grid smh
// Calling it a Box because that's how row-or-column widget is called in Gtk
GridLayout {
id: root
property bool vertical: false
columns: vertical ? 1 : -1
rows: vertical ? -1 : 1
property alias spacing: root.rowSpacing
columnSpacing: rowSpacing
}