add package list in update page
This commit is contained in:
49
qml/pages/UpdatePg.qml
Normal file
49
qml/pages/UpdatePg.qml
Normal file
@@ -0,0 +1,49 @@
|
||||
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 bool isChecking: true
|
||||
property bool isUpdating: false
|
||||
property bool isInstalling: false
|
||||
property var packages: []
|
||||
signal updateRequested()
|
||||
|
||||
ColumnLayout {
|
||||
anchors.fill: parent
|
||||
spacing: 12
|
||||
|
||||
Item {
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
|
||||
Lists.PackageList {
|
||||
anchors.fill: parent
|
||||
packages: root.packages
|
||||
packageCount: root.packageCount
|
||||
isChecking: root.isChecking
|
||||
}
|
||||
|
||||
Components.PreLoader {
|
||||
visible: root.isChecking
|
||||
anchors.fill: parent
|
||||
}
|
||||
}
|
||||
|
||||
Buttons.UpdateBtn {
|
||||
Layout.fillWidth: true
|
||||
packageCount: root.packageCount
|
||||
isChecking: root.isChecking
|
||||
isUpdating: root.isUpdating
|
||||
isInstalling: root.isInstalling
|
||||
onClicked: root.updateRequested()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user