Merge branch 'development'
[quandoparte] / application / resources / harmattan / qml / main.qml
1 import QtQuick 1.1
2 import QtMobility.systeminfo 1.2
3 import com.nokia.meego 1.0
4
5 PageStackWindow {
6     id: window
7     showToolBar: true
8     showStatusBar: screen.currentOrientation === Screen.Landscape ? false : true
9 /*
10     platformStyle: PageStackWindowStyle {
11         background: "image://theme/meegotouch-applicationpage" +
12                     (screen.currentOrientation === Screen.Landscape ? "" : "-portrait") +
13                     "-background" +
14                     (theme.inverted ? "-inverted" : "")
15     }
16 */
17     initialPage: StationListPage {
18     }
19
20     AlignedTimer {
21         id: updateTimer
22         minimumInterval: 120
23         maximumInterval: 130
24     }
25     Component.onCompleted: {
26         // FIXME checkingInterval is deprecated use autoUpdate
27         if (settings.checkingInterval > 0) updateTimer.start()
28         theme.inverted = settings.darkThemePreferred
29         theme.colorScheme = 3
30     }
31 }