1
0
Fork 0
mirror of https://github.com/kbumsik/VirtScreen.git synced 2025-03-09 15:40:18 +00:00

Error message dialog added for X11VMC error

This commit is contained in:
Bumsik Kim 2018-05-16 07:04:16 -04:00
parent db125fe7c5
commit fb868a4f7f
No known key found for this signature in database
GPG key ID: E31041C8EC5B01C6
4 changed files with 53 additions and 15 deletions

View file

@ -221,6 +221,29 @@ ApplicationWindow {
onRejected: passwordFIeld.text = ""
}
Dialog {
id: errorDialog
title: "Error"
focus: true
modal: true
standardButtons: Dialog.Ok
x: (parent.width - width) / 2
y: (parent.width - height) / 2 //(window.height) / 2
width: popupWidth
ColumnLayout {
anchors.fill: parent
Text {
horizontalAlignment: Text.AlignHCenter
text: errorText.text
onTextChanged: {
if (text) {
errorDialog.open();
}
}
}
}
}
Loader {
id: preferenceLoader
active: false

View file

@ -9,7 +9,7 @@ Dialog {
focus: true
modal: true
visible: true
standardButtons: Dialog.Ok | Dialog.Cancel
standardButtons: Dialog.Ok
x: (window.width - width) / 2
y: (window.width - height) / 2
width: popupWidth