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:
parent
db125fe7c5
commit
fb868a4f7f
4 changed files with 53 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue