mirror of
https://github.com/kbumsik/VirtScreen.git
synced 2025-03-09 15:40:18 +00:00
Backend: show ip list
This commit is contained in:
parent
85b0670a92
commit
3a76aa7ef7
2 changed files with 37 additions and 12 deletions
25
main.qml
25
main.qml
|
|
@ -152,17 +152,8 @@ ApplicationWindow {
|
|||
anchors.leftMargin: 120
|
||||
|
||||
textRole: "name"
|
||||
model: []
|
||||
|
||||
Component.onCompleted: {
|
||||
var screens = backend.screens;
|
||||
var list = [];
|
||||
for (var i = 0; i < screens.length; i++) {
|
||||
list.push(screens[i]);
|
||||
}
|
||||
deviceComboBox.model = list;
|
||||
deviceComboBox.currentIndex = backend.virtScreenIndex
|
||||
}
|
||||
model: backend.screens
|
||||
currentIndex: backend.virtScreenIndex
|
||||
|
||||
onActivated: function(index) {
|
||||
backend.virtScreenIndex = index
|
||||
|
|
@ -287,6 +278,18 @@ ApplicationWindow {
|
|||
// Material.foreground: Material.Grey
|
||||
onClicked: backend.vncState == Backend.OFF ? backend.startVNC() : backend.stopVNC()
|
||||
}
|
||||
|
||||
ListView {
|
||||
// width: 180;
|
||||
height: 200
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
|
||||
model: backend.ipAddresses
|
||||
delegate: Text {
|
||||
text: modelData
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue