qtc-root.qml 714 Bytes
Newer Older
1 2 3
import QtQuick 1.0
import com.meego 1.0

4 5
//PageStackWindow {
Main {
6 7
    id: window
    anchors.fill: parent
8 9
/*    showStatusBar: true
#    showToolBar: false
10

11 12
#    initialPage: Page {
#        orientationLock: PageOrientation.LockLandscape
13 14
        Main {}
    }
15
*/
16
    Component.onCompleted: {
17 18
        if (platformWindow)
            activeMonitor.external = true
19 20
        console.log("Set activeMonitor external modification = " + activeMonitor.external)
    }
21 22 23 24 25 26 27 28 29

    Connections {
        target: platformWindow

        onVisibleChanged: updateVisible()
    }


    function updateVisible() {
30
        console.log("Visible = " + platformWindow.visible)
31
        activeMonitor.active = platformWindow.visible
32
    }
33
}