mirror of
				https://github.com/kbumsik/VirtScreen.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	QML: Groupbox for IP list
This commit is contained in:
		
							parent
							
								
									a5bc16ddda
								
							
						
					
					
						commit
						4ba6598725
					
				
					 1 changed files with 37 additions and 22 deletions
				
			
		
							
								
								
									
										55
									
								
								main.qml
									
										
									
									
									
								
							
							
						
						
									
										55
									
								
								main.qml
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -98,22 +98,6 @@ ApplicationWindow {
 | 
			
		|||
    // menuBar: MenuBar {
 | 
			
		||||
    // }
 | 
			
		||||
 | 
			
		||||
    header: TabBar {
 | 
			
		||||
        id: tabBar
 | 
			
		||||
        position: TabBar.Footer
 | 
			
		||||
        // Material.primary: Material.Teal
 | 
			
		||||
 | 
			
		||||
        currentIndex: 0
 | 
			
		||||
 | 
			
		||||
        TabButton {
 | 
			
		||||
            text: qsTr("Display")
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        TabButton {
 | 
			
		||||
            text: qsTr("VNC")
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    menuBar: ToolBar {
 | 
			
		||||
        id: toolbar
 | 
			
		||||
        font.weight: Font.Medium
 | 
			
		||||
| 
						 | 
				
			
			@ -134,6 +118,22 @@ ApplicationWindow {
 | 
			
		|||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    header: TabBar {
 | 
			
		||||
        id: tabBar
 | 
			
		||||
        position: TabBar.Footer
 | 
			
		||||
        // Material.primary: Material.Teal
 | 
			
		||||
 | 
			
		||||
        currentIndex: 0
 | 
			
		||||
 | 
			
		||||
        TabButton {
 | 
			
		||||
            text: qsTr("Display")
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        TabButton {
 | 
			
		||||
            text: qsTr("VNC")
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // footer: ToolBar {
 | 
			
		||||
    //     font.weight: Font.Medium
 | 
			
		||||
    //     font.pointSize: 11 //parent.font.pointSize + 1
 | 
			
		||||
| 
						 | 
				
			
			@ -165,6 +165,9 @@ ApplicationWindow {
 | 
			
		|||
 | 
			
		||||
    StackLayout {
 | 
			
		||||
        width: parent.width
 | 
			
		||||
        anchors.top: tabBar.bottom
 | 
			
		||||
        anchors.bottom: parent.bottom
 | 
			
		||||
 | 
			
		||||
        currentIndex: tabBar.currentIndex
 | 
			
		||||
 | 
			
		||||
        ColumnLayout {
 | 
			
		||||
| 
						 | 
				
			
			@ -433,19 +436,31 @@ ApplicationWindow {
 | 
			
		|||
                }
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            ListView {
 | 
			
		||||
                id: ipListView
 | 
			
		||||
                height: 200
 | 
			
		||||
 | 
			
		||||
            GroupBox {
 | 
			
		||||
                title: "Available IP addresses"
 | 
			
		||||
                anchors.top: vncButton.top
 | 
			
		||||
                anchors.bottom: parent.bottom
 | 
			
		||||
                anchors.left: parent.left
 | 
			
		||||
                anchors.right: parent.right
 | 
			
		||||
                anchors.topMargin: 70
 | 
			
		||||
 | 
			
		||||
                ColumnLayout {
 | 
			
		||||
                    anchors.fill: parent
 | 
			
		||||
 | 
			
		||||
                    ListView {
 | 
			
		||||
                        id: ipListView
 | 
			
		||||
                        anchors.fill: parent
 | 
			
		||||
                        
 | 
			
		||||
                        model: backend.ipAddresses
 | 
			
		||||
                delegate: Text {
 | 
			
		||||
                        delegate: Label {
 | 
			
		||||
                            text: modelData
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // Sytray Icon
 | 
			
		||||
    Labs.SystemTrayIcon {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue