1
0
Fork 0
mirror of https://github.com/kbumsik/VirtScreen.git synced 2025-02-14 12:21:50 +00:00

QML moved progress bar to footer

This commit is contained in:
Bumsik Kim 2018-05-15 15:29:31 -04:00
parent 275abb2f02
commit a0f29de12c
No known key found for this signature in database
GPG key ID: E31041C8EC5B01C6
2 changed files with 4 additions and 13 deletions

View file

@ -98,22 +98,13 @@ ApplicationWindow {
}
}
// footer: ToolBar {
// font.weight: Font.Medium
// font.pointSize: 11 //parent.font.pointSize + 1
// anchors { horizontalCenter: parent.horizontalCenter }
// width: 200
// }
ProgressBar {
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
footer: ProgressBar {
z: 1
indeterminate: backend.vncState == Backend.WAITING
value: backend.vncState == Backend.CONNECTED ? 1 : 0
}
Popup {
id: busyDialog
modal: true

View file

@ -294,8 +294,8 @@ class XRandR(SubprocessWrapper):
self.virt.width = height
self.virt.height = width
if hidpi:
self.virt.width = 2 * self.virt.width
self.virt.height = 2 * self.virt.height
self.virt.width *= 2
self.virt.height *= 2
self.mode_name = str(self.virt.width) + "x" + str(self.virt.height) + self.VIRT_SCREEN_SUFFIX
# Then create using xrandr command
args_addmode = f"xrandr --addmode {self.virt.name} {self.mode_name}"