Frame culling now done in QML rather than CPP.
2 import QtQuick.Controls 1.2
3 import QtPositioning 5.3
5 import QtQuick.Dialogs 1.2
6 import QtQuick.Window 2.1
7 import Qt.labs.settings 1.0
9 import QtQuick.Layouts 1.1
19 title: qsTr("MiniDisplay Manager")
20 SystemPalette { id: palette }
21 //Component.onCompleted: progressBar.visible=tabViewMain.getTab(tabViewMain.currentIndex).status !== Loader.Ready
23 statusBar: DisplayStatusBar {}
27 property alias x: appWindow.x
28 property alias y: appWindow.y
29 property alias width: appWindow.width
30 property alias height: appWindow.height
39 onTriggered: Qt.quit();
45 function trackProgress()
47 progressBar.value = tabViewMain.getTab(tabViewMain.currentIndex).progress;
48 progressBar.visible = tabViewMain.getTab(tabViewMain.currentIndex).status !== Loader.Ready;
52 function updateDisplayStatus()
56 labelDisplayStatus.text=qsTr("Connected");
60 labelDisplayStatus.text=qsTr("Disconnected");
63 labelDisplayVendor.text=display.vendor;
64 labelDisplayProduct.text=display.product;
65 labelDisplaySerialNumber.text=display.serialNumber;
71 //onOpened:updateDisplayStatus()
72 //onClosed:updateDisplayStatus()
73 //onOpenError:{ updateDisplayStatus(); labelDisplayStatus.text=qsTr("Connection error");}
85 title: qsTr("Display")
87 //onLoaded: progressBar.visible=false
88 onStatusChanged: trackProgress()
89 DisplayTab { anchors.fill: parent }
95 onStatusChanged: trackProgress()
96 FontsTab { anchors.fill: parent }
101 onStatusChanged: trackProgress()
102 TestsTab { anchors.fill: parent }
108 anchors.centerIn: parent