43 lines
808 B
QML
43 lines
808 B
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import "../buttons" as Buttons
|
|
import "../components" as Components
|
|
import "../lists" as Lists
|
|
|
|
Item {
|
|
id: root
|
|
|
|
property int packageCount: 0
|
|
property int status: 0
|
|
property var packages: []
|
|
signal update()
|
|
|
|
ColumnLayout {
|
|
anchors.fill: parent
|
|
spacing: 12
|
|
|
|
Item {
|
|
Layout.fillWidth: true
|
|
Layout.fillHeight: true
|
|
|
|
Lists.PackageList {
|
|
anchors.fill: parent
|
|
packages: root.packages
|
|
}
|
|
|
|
Components.PreLoader {
|
|
visible: root.status === ProcessManager.Status.Checking
|
|
anchors.fill: parent
|
|
status: root.status
|
|
}
|
|
}
|
|
|
|
Buttons.UpdateBtn {
|
|
Layout.fillWidth: true
|
|
packageCount: root.packageCount
|
|
status: root.status
|
|
onClicked: root.update()
|
|
}
|
|
}
|
|
}
|