summaryrefslogtreecommitdiffstats
path: root/startupscreen/SplashView.ui.qml
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2020-10-20 12:06:53 +0300
committerSamuli Piippo <samuli.piippo@qt.io>2020-10-29 05:43:49 +0000
commit25842566eee73aa8f2b07dcd334d47d6f6853579 (patch)
treebf00d8f91ca3bc70a728aec4ae953e0a99f6d780 /startupscreen/SplashView.ui.qml
parent84726988dad28ad4b7e77dcda7baddda094b90dd (diff)
startupscreen: make UI dynamic
Dynamically adjust the UI element based on the screen size to better handle the various screen sizes available in embedded devices. Make states handle only the landscape - portrait changes. Remove progress bar from splash screen and make it hide automoatically. Remove SD card button and hide wifi button. Change-Id: I308ad696cf4c2ee3b97adfc231cd76899152f357 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> Reviewed-by: Rami Potinkara <rami.potinkara@qt.io>
Diffstat (limited to 'startupscreen/SplashView.ui.qml')
-rw-r--r--startupscreen/SplashView.ui.qml29
1 files changed, 3 insertions, 26 deletions
diff --git a/startupscreen/SplashView.ui.qml b/startupscreen/SplashView.ui.qml
index bf12f6f..07b339b 100644
--- a/startupscreen/SplashView.ui.qml
+++ b/startupscreen/SplashView.ui.qml
@@ -1,3 +1,4 @@
+
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
@@ -47,9 +48,8 @@
** $QT_END_LICENSE$
**
****************************************************************************/
-import QtQuick 2.12
-import StartupScreen 1.0
-import QtQuick.Controls 2.15
+import QtQuick
+import QtQuick.Controls
Rectangle {
id: root
@@ -65,29 +65,6 @@ Rectangle {
source: "assets/builtwithQt.png"
anchors.centerIn: root
}
-
- ProgressBar {
- id: progressBar
- width: parent.width
- height: 8
- value: 0.5
- anchors.bottom: parent.bottom
- anchors.left: parent.left
- background: Item {
- implicitWidth: parent.width
- implicitHeight: 6
- }
- contentItem: Item {
- implicitWidth: parent.width
- implicitHeight: 6
- Rectangle {
- width: progressBar.visualPosition * parent.width
- height: parent.height
- color: "#41CD52"
- border.width: 0
- }
- }
- }
}
/*##^##