summaryrefslogtreecommitdiffstats
path: root/src/qml/HomeScreen.qml
diff options
context:
space:
mode:
authorSzabolcs David <[email protected]>2023-03-08 15:04:07 +0100
committerSzabolcs David <[email protected]>2023-04-05 10:50:54 +0000
commit1fe0003d727bdacd30c552f01000c434971ad3ca (patch)
tree9bb8e594214e02c8230cea07387d47850bee9505 /src/qml/HomeScreen.qml
parenta09ec269e8b296d39d78b45ae251edb3d7bada41 (diff)
Update project to work with Qt 6HEADdev
Also fix an old issue: tab view now presents preview images. Change-Id: I47eb48b626e62e53e130734c92cc7ec8ed9ecb66 Reviewed-by: Michal Klocek <[email protected]>
Diffstat (limited to 'src/qml/HomeScreen.qml')
-rw-r--r--src/qml/HomeScreen.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/HomeScreen.qml b/src/qml/HomeScreen.qml
index 3d66e87..ebe5f92 100644
--- a/src/qml/HomeScreen.qml
+++ b/src/qml/HomeScreen.qml
@@ -27,8 +27,8 @@
**
****************************************************************************/
-import QtQuick 2.5
-import WebBrowser 1.0
+import QtQuick
+import WebBrowser
import "assets"
Rectangle {
@@ -172,7 +172,7 @@ Rectangle {
var margin = (parent.width - 4 * gridView.cellWidth - homeScreen.padding) / 2
var padding = gridView.page - Math.round(gridView.count % gridViewPageItemCount / 2) * gridView.cellWidth
- if (padding == gridView.page)
+ if (padding === gridView.page)
return margin
return margin + padding