add package list in update page
This commit is contained in:
37
qml/pages/DeletePg.qml
Normal file
37
qml/pages/DeletePg.qml
Normal file
@@ -0,0 +1,37 @@
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import QtQuick.Window
|
||||
import QtQuick.Controls
|
||||
|
||||
Item {
|
||||
id: root
|
||||
|
||||
ColumnLayout {
|
||||
anchors.fill: parent
|
||||
spacing: 8
|
||||
|
||||
TextField {
|
||||
id: packageSearchField
|
||||
Layout.fillWidth: true
|
||||
placeholderText: "название установленного пакета"
|
||||
placeholderTextColor: Theme.color3
|
||||
selectByMouse: true
|
||||
color: Theme.color2
|
||||
font.pixelSize: 14
|
||||
|
||||
background: Rectangle {
|
||||
color: "#313244"
|
||||
radius: 3
|
||||
border.width: 1
|
||||
border.color: packageSearchField.activeFocus ? Theme.color6 : Theme.color4
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
Layout.fillHeight: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
37
qml/pages/InstallPg.qml
Normal file
37
qml/pages/InstallPg.qml
Normal file
@@ -0,0 +1,37 @@
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import QtQuick.Window
|
||||
import QtQuick.Controls
|
||||
|
||||
Item {
|
||||
id: root
|
||||
|
||||
ColumnLayout {
|
||||
anchors.fill: parent
|
||||
spacing: 8
|
||||
|
||||
TextField {
|
||||
id: packageSearchField
|
||||
Layout.fillWidth: true
|
||||
placeholderText: "название пакета, например sourcegit"
|
||||
placeholderTextColor: Theme.color3
|
||||
selectByMouse: true
|
||||
color: Theme.color2
|
||||
font.pixelSize: 14
|
||||
|
||||
background: Rectangle {
|
||||
color: "#313244"
|
||||
radius: 3
|
||||
border.width: 1
|
||||
border.color: packageSearchField.activeFocus ? Theme.color6 : Theme.color4
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
Layout.fillHeight: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
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