add console impl close/open
This commit is contained in:
32
Main.qml
32
Main.qml
@@ -69,12 +69,32 @@ ApplicationWindow {
|
||||
}
|
||||
}
|
||||
|
||||
readonly property string consoleTitle: tabs.currentIndex === 0 ? "Консоль обновления" : tabs.currentIndex === 1 ? "Консоль установки" : "Консоль удаления"
|
||||
|
||||
Components.ConsoleBar {
|
||||
title: consoleTitle
|
||||
consoleOpen: consoleOpen
|
||||
Item {
|
||||
id: plug
|
||||
implicitHeight: 20
|
||||
}
|
||||
Components.ConsolePanel {}
|
||||
}
|
||||
|
||||
readonly property string consoleTitle: tabs.currentIndex === 0 ? "Консоль обновления" : tabs.currentIndex === 1 ? "Консоль установки" : "Консоль удаления"
|
||||
readonly property string consoleStatus: "in develop"
|
||||
// readonly property string consoleStatus: tabs.currentIndex === 0
|
||||
// ? (UpdateManager.isUpdating ? "обновление..." : "")
|
||||
// : tabBar.currentIndex === 1
|
||||
// ? (UpdateManager.isInstalling ? "установка..." : "")
|
||||
// : (UpdateManager.isRemoving ? "удаление..." : "")
|
||||
|
||||
Components.ConsoleBar {
|
||||
id: consoleBar
|
||||
title: root.consoleTitle
|
||||
consoleOpen: root.consoleOpen
|
||||
status: root.consoleStatus
|
||||
onToggled: root.consoleOpen = !root.consoleOpen
|
||||
}
|
||||
|
||||
Components.ConsolePanel {
|
||||
id: consolePanel
|
||||
anchors.bottom: consoleBar.top
|
||||
consoleOpen: root.consoleOpen
|
||||
status: root.consoleStatus
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user