mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
35 lines
735 B
QML
35 lines
735 B
QML
|
|
import QtQuick
|
||
|
|
import QtQuick.Controls
|
||
|
|
import QtQuick.Layouts
|
||
|
|
|
||
|
|
Popup {
|
||
|
|
id: root
|
||
|
|
|
||
|
|
property string popupWarningText
|
||
|
|
|
||
|
|
anchors.centerIn: Overlay.overlay
|
||
|
|
modal: true
|
||
|
|
closePolicy: Popup.NoAutoClose
|
||
|
|
width: parent.width - 20
|
||
|
|
|
||
|
|
ColumnLayout {
|
||
|
|
width: parent.width
|
||
|
|
Text {
|
||
|
|
horizontalAlignment: Text.AlignHCenter
|
||
|
|
Layout.fillWidth: true
|
||
|
|
wrapMode: Text.WordWrap
|
||
|
|
font.pixelSize: 16
|
||
|
|
text: root.popupWarningText
|
||
|
|
}
|
||
|
|
|
||
|
|
BlueButtonType {
|
||
|
|
Layout.preferredWidth: parent.width / 2
|
||
|
|
Layout.fillWidth: true
|
||
|
|
text: "Continue"
|
||
|
|
onClicked: {
|
||
|
|
root.close()
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|