mirror of
https://github.com/kbumsik/VirtScreen.git
synced 2025-03-09 15:40:18 +00:00
Backend: capture errors of xrandr and display settings program
This commit is contained in:
parent
7e8eeaf0a7
commit
bc0de4f368
2 changed files with 48 additions and 23 deletions
|
|
@ -230,19 +230,38 @@ ApplicationWindow {
|
|||
x: (parent.width - width) / 2
|
||||
y: (parent.width - height) / 2 //(window.height) / 2
|
||||
width: popupWidth
|
||||
height: 310
|
||||
ColumnLayout {
|
||||
anchors.fill: parent
|
||||
Text {
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
Layout.fillWidth: true
|
||||
wrapMode: Text.WordWrap
|
||||
text: errorText.text
|
||||
onTextChanged: {
|
||||
if (text) {
|
||||
busyDialog.close();
|
||||
errorDialog.open();
|
||||
ScrollView {
|
||||
anchors.fill: parent
|
||||
TextArea {
|
||||
// readOnly: true
|
||||
selectByMouse: true
|
||||
Layout.fillWidth: true
|
||||
// wrapMode: Text.WordWrap
|
||||
text: errorText.text
|
||||
onTextChanged: {
|
||||
if (text) {
|
||||
busyDialog.close();
|
||||
errorDialog.open();
|
||||
}
|
||||
}
|
||||
}
|
||||
ScrollBar.vertical: ScrollBar {
|
||||
// parent: ipListView.parent
|
||||
anchors.top: parent.top
|
||||
anchors.left: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
policy: ScrollBar.AlwaysOn
|
||||
}
|
||||
ScrollBar.horizontal: ScrollBar {
|
||||
// parent: ipListView.parent
|
||||
anchors.top: parent.bottom
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
policy: ScrollBar.AlwaysOn
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue