mirror of
https://github.com/kbumsik/VirtScreen.git
synced 2025-03-09 15:40:18 +00:00
QML moved progress bar to footer
This commit is contained in:
parent
275abb2f02
commit
a0f29de12c
2 changed files with 4 additions and 13 deletions
|
@ -98,22 +98,13 @@ ApplicationWindow {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// footer: ToolBar {
|
footer: ProgressBar {
|
||||||
// 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
|
|
||||||
z: 1
|
z: 1
|
||||||
indeterminate: backend.vncState == Backend.WAITING
|
indeterminate: backend.vncState == Backend.WAITING
|
||||||
value: backend.vncState == Backend.CONNECTED ? 1 : 0
|
value: backend.vncState == Backend.CONNECTED ? 1 : 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Popup {
|
Popup {
|
||||||
id: busyDialog
|
id: busyDialog
|
||||||
modal: true
|
modal: true
|
||||||
|
|
|
@ -294,8 +294,8 @@ class XRandR(SubprocessWrapper):
|
||||||
self.virt.width = height
|
self.virt.width = height
|
||||||
self.virt.height = width
|
self.virt.height = width
|
||||||
if hidpi:
|
if hidpi:
|
||||||
self.virt.width = 2 * self.virt.width
|
self.virt.width *= 2
|
||||||
self.virt.height = 2 * self.virt.height
|
self.virt.height *= 2
|
||||||
self.mode_name = str(self.virt.width) + "x" + str(self.virt.height) + self.VIRT_SCREEN_SUFFIX
|
self.mode_name = str(self.virt.width) + "x" + str(self.virt.height) + self.VIRT_SCREEN_SUFFIX
|
||||||
# Then create using xrandr command
|
# Then create using xrandr command
|
||||||
args_addmode = f"xrandr --addmode {self.virt.name} {self.mode_name}"
|
args_addmode = f"xrandr --addmode {self.virt.name} {self.mode_name}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue