2021-09-02 09:57:32 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
2021-10-20 10:03:09 +00:00
|
|
|
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
|
2021-10-27 21:27:49 +00:00
|
|
|
import shared 1.0
|
|
|
|
import shared.panels 1.0
|
|
|
|
import shared.popups 1.0
|
2021-09-02 09:57:32 +00:00
|
|
|
|
2021-10-14 11:33:34 +00:00
|
|
|
// TODO: replace with StatusModal
|
2021-09-02 09:57:32 +00:00
|
|
|
ModalPopup {
|
|
|
|
height: 237
|
|
|
|
width: 400
|
|
|
|
|
|
|
|
property Popup parentPopup
|
2022-02-09 09:43:23 +00:00
|
|
|
|
2021-09-02 09:57:32 +00:00
|
|
|
title: qsTr("Application Restart")
|
|
|
|
|
|
|
|
StyledText {
|
2021-09-02 12:39:50 +00:00
|
|
|
text: qsTr("Please restart the application to apply the changes.")
|
2021-09-02 09:57:32 +00:00
|
|
|
font.pixelSize: 15
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
wrapMode: Text.WordWrap
|
|
|
|
}
|
|
|
|
|
|
|
|
footer: Item {
|
|
|
|
id: footerContainer
|
|
|
|
width: parent.width
|
|
|
|
height: children[0].height
|
|
|
|
|
|
|
|
StatusButton {
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: Style.current.smallPadding
|
2021-10-21 07:55:52 +00:00
|
|
|
type: StatusBaseButton.Type.Danger
|
2021-09-02 12:39:50 +00:00
|
|
|
text: qsTr("Restart")
|
2021-09-02 09:57:32 +00:00
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
onClicked: Qt.quit()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|