add base ColumnLayout
This commit is contained in:
25
Main.qml
25
Main.qml
@@ -1,18 +1,37 @@
|
||||
import QtQuick
|
||||
import QtQuick.Controls.Basic
|
||||
import QtQuick.Layouts 1.15
|
||||
|
||||
import archpack
|
||||
|
||||
ApplicationWindow {
|
||||
id: window
|
||||
id: root
|
||||
|
||||
readonly property int compactWidth: 740
|
||||
readonly property int currentWidth: 740
|
||||
|
||||
title: "Arch Linux Updater"
|
||||
width: compactWidth
|
||||
width: currentWidth
|
||||
height: 560
|
||||
minimumWidth: 200
|
||||
minimumHeight: 250
|
||||
visible: true
|
||||
color: Theme.base
|
||||
|
||||
RowLayout {
|
||||
anchors.fill: parent
|
||||
spacing: 0
|
||||
|
||||
Item {
|
||||
id: mainColumn
|
||||
Layout.preferredWidth: root.currentWidth
|
||||
Layout.fillHeight: true
|
||||
|
||||
ColumnLayout {
|
||||
id: layout
|
||||
anchors.fill: parent
|
||||
anchors.margins: 16
|
||||
spacing: 12
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user