refactor flexible grids into Box

This commit is contained in:
end-4
2026-03-09 11:03:56 +01:00
parent d1dc89b9f2
commit 6952d89a7f
7 changed files with 37 additions and 16 deletions
@@ -0,0 +1,13 @@
pragma ComponentBehavior: Bound
import QtQuick
import QtQuick.Layouts
// Box, Layout version
// A type that's both capable of being rows and columns
// 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 {
property bool vertical: false
columns: vertical ? 1 : -1
rows: vertical ? -1 : 1
}