FluentUI/example/Uninstall.qml

76 lines
1.7 KiB
QML
Raw Normal View History

2023-03-03 18:19:48 +08:00
import QtQuick 2.15
import QtQuick.Layouts 1.15
import QtQuick.Dialogs 1.3 as Dialogs
import Qt.labs.platform 1.1
import FluentUI 1.0
FluWindow {
id:window
width: 800
height: 400
minimumWidth:800
maximumWidth:800
minimumHeight:400
maximumHeight:400
title:"卸载向导"
FluAppBar{
id:appbar
title: "卸载向导"
}
ColumnLayout{
width: parent.width
anchors{
top: appbar.bottom
bottom: parent.bottom
topMargin: 20
}
2023-03-05 23:39:13 +08:00
2023-03-03 18:19:48 +08:00
Item{
2023-03-05 23:39:13 +08:00
Layout.preferredWidth : parent.width
2023-03-03 18:19:48 +08:00
Layout.fillHeight: true
2023-03-05 23:39:13 +08:00
FluText{
text:"青山不改,绿水长流,有缘再见"
anchors.centerIn: parent
fontStyle:FluText.TitleLarge
}
2023-03-03 18:19:48 +08:00
}
Rectangle{
Layout.fillWidth: true
border.width: 1
border.color: FluApp.isDark ? Qt.rgba(45/255,45/255,45/255,1) : Qt.rgba(238/255,238/255,238/255,1)
height: 60
color: FluApp.isDark ? "#323232" : "#FFFFFF"
RowLayout{
anchors{
right: parent.right
rightMargin: 30
verticalCenter: parent.verticalCenter
}
spacing: 14
FluButton{
text:"取消"
onClicked: {
window.close()
}
}
FluButton{
text:"确定要卸载"
onClicked: {
installHelper.uninstall()
}
}
}
}
}
}