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:
parent
275abb2f02
commit
a0f29de12c
2 changed files with 4 additions and 13 deletions
|
@ -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
|
||||
|
|
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue