summaryrefslogtreecommitdiffstats
path: root/basicsuite/qt5-cinematicdemo/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'basicsuite/qt5-cinematicdemo/main.qml')
-rw-r--r--basicsuite/qt5-cinematicdemo/main.qml48
1 files changed, 48 insertions, 0 deletions
diff --git a/basicsuite/qt5-cinematicdemo/main.qml b/basicsuite/qt5-cinematicdemo/main.qml
new file mode 100644
index 0000000..b9ad90f
--- /dev/null
+++ b/basicsuite/qt5-cinematicdemo/main.qml
@@ -0,0 +1,48 @@
+import QtQuick 2.0
+import "content"
+
+Item {
+ id: mainWindow
+
+ width: 1920
+ height: 1080
+
+ QtObject {
+ id: settings
+ // These are used to scale fonts according to screen size
+ property real _scaler: 300 + mainWindow.width * mainWindow.height * 0.00015
+ property int fontXS: _scaler * 0.032
+ property int fontS: _scaler * 0.040
+ property int fontM: _scaler * 0.046
+ property int fontMM: _scaler * 0.064
+ property int fontL: _scaler * 0.100
+ // Settings
+ property bool showFogParticles: false
+ property bool showShootingStarParticles: false
+ property bool showLighting: false
+ property bool showColors: true
+ }
+
+ MainView {
+ id: mainView
+ }
+
+ InfoView {
+ id: infoView
+ }
+
+ DetailsView {
+ id: detailsView
+ }
+
+ MoviesModel {
+ id: moviesModel
+ }
+
+ FpsItem {
+ anchors.top: parent.top
+ anchors.topMargin: 8
+ anchors.left: parent.left
+ anchors.leftMargin: 8
+ }
+}