mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-08 16:29:26 -05:00
17 lines
417 B
QML
17 lines
417 B
QML
pragma ComponentBehavior: Bound
|
|
import QtQuick
|
|
|
|
// 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
|
|
Grid {
|
|
id: root
|
|
|
|
property bool vertical: false
|
|
columns: vertical ? 1 : -1
|
|
rows: vertical ? -1 : 1
|
|
|
|
property alias spacing: root.rowSpacing
|
|
columnSpacing: rowSpacing
|
|
}
|