Hacking around our UI so that our frame display window remains inside our app.
authorsl
Thu, 29 May 2014 17:25:06 +0200
changeset 17aa257fdcd093
parent 16 35f01a0d460a
child 18 79801cc3bc94
Hacking around our UI so that our frame display window remains inside our app.
DisplayTab.qml
TestsTab.qml
main.qml
     1.1 --- a/DisplayTab.qml	Thu May 29 15:47:51 2014 +0200
     1.2 +++ b/DisplayTab.qml	Thu May 29 17:25:06 2014 +0200
     1.3 @@ -120,7 +120,8 @@
     1.4          anchors.margins: 8
     1.5          anchors.right: parent.right
     1.6          anchors.top: parent.top
     1.7 -        anchors.bottom: parent.bottom
     1.8 +        //anchors.bottom: parent.bottom-parent.height/2
     1.9 +        height:parent.height/2
    1.10          //
    1.11          orientation: Qt.Vertical
    1.12          minimumValue: display.minBrightness
     2.1 --- a/TestsTab.qml	Thu May 29 15:47:51 2014 +0200
     2.2 +++ b/TestsTab.qml	Thu May 29 17:25:06 2014 +0200
     2.3 @@ -6,6 +6,7 @@
     2.4  
     2.5  
     2.6  Item {
     2.7 +    id: testTab
     2.8      //width: 100
     2.9      //height: 62
    2.10      //SystemPalette { id: palette }
    2.11 @@ -25,8 +26,11 @@
    2.12          signal timeout
    2.13      //! [splash-properties]
    2.14      //! [screen-properties]
    2.15 -        x: (Screen.width - rectangleScreen.width) / 2
    2.16 -        y: (Screen.height - rectangleScreen.height) / 2
    2.17 +        //x: (Screen.width - rectangleScreen.width) / 2
    2.18 +        //y: (Screen.height - rectangleScreen.height) / 2
    2.19 +        x: appWindow.x+appWindow.width-256-13
    2.20 +        y: appWindow.y+appWindow.height-64-30
    2.21 +
    2.22      //! [screen-properties]
    2.23          width: rectangleScreen.width
    2.24          height: rectangleScreen.height
     3.1 --- a/main.qml	Thu May 29 15:47:51 2014 +0200
     3.2 +++ b/main.qml	Thu May 29 17:25:06 2014 +0200
     3.3 @@ -14,6 +14,8 @@
     3.4      visible: true
     3.5      width: 640
     3.6      height: 480
     3.7 +    minimumWidth: 400
     3.8 +    minimumHeight: 400
     3.9      title: qsTr("MiniDisplay Manager")
    3.10      SystemPalette { id: palette }
    3.11      //Component.onCompleted: progressBar.visible=tabViewMain.getTab(tabViewMain.currentIndex).status !== Loader.Ready