diff options
author | Sami Nurmenniemi <sami.nurmenniemi@qt.io> | 2017-10-10 14:58:15 +0300 |
---|---|---|
committer | Sami Nurmenniemi <sami.nurmenniemi@qt.io> | 2017-11-22 10:43:09 +0000 |
commit | 6b690e80114c0b519bd7a6470e27c2cf5756ae35 (patch) | |
tree | 221b6c87fb93ad479b792e3737243ec14a2f62b4 | |
parent | fd2decabd6cafb1e90a542257c8a84b8c9ec4e94 (diff) |
Improve demo performance
- Hide virtual keyboard when it's not on screen
- Hide background image until QTBUG-63585 has been resolved
- Add cacheBuffer to application GridView
Task-number: QTBUG-63091
Change-Id: I0f213217491e69d4c03467f358115c99f783153b
Reviewed-by: Kari Oikarinen <kari.oikarinen@qt.io>
-rw-r--r-- | qml/Background.qml | 4 | ||||
-rw-r--r-- | qml/LaunchScreen.qml | 1 | ||||
-rw-r--r-- | qml/Main.qml | 3 |
3 files changed, 7 insertions, 1 deletions
diff --git a/qml/Background.qml b/qml/Background.qml index 81fb81d..3beb07f 100644 --- a/qml/Background.qml +++ b/qml/Background.qml @@ -33,6 +33,10 @@ Image { source: "images/backImg.jpg" fillMode: Image.PreserveAspectCrop + // QTBUG-63585, background image causes poor performance of flickable items + // on low-end gpu devices + visible: false + Rectangle { anchors.fill: parent color: "#09102b" diff --git a/qml/LaunchScreen.qml b/qml/LaunchScreen.qml index 0b888c1..829fd8e 100644 --- a/qml/LaunchScreen.qml +++ b/qml/LaunchScreen.qml @@ -38,6 +38,7 @@ Item { anchors.fill: parent anchors.margins: viewSettings.pageMargin * 0.5 anchors.topMargin: viewSettings.pageMargin + cacheBuffer: 10000 cellWidth: width / 3 cellHeight: cellWidth diff --git a/qml/Main.qml b/qml/Main.qml index bae46bd..0408822 100644 --- a/qml/Main.qml +++ b/qml/Main.qml @@ -41,7 +41,7 @@ Window { width: 800 height: 600 - color: "white" + color: "#09102b" property alias appFont: viewSettings.appFont ViewSettings { @@ -285,6 +285,7 @@ Window { y: root.height anchors.left: root.left anchors.right: root.right + visible: y < root.height states: State { name: "visible" |