aboutsummaryrefslogtreecommitdiff
path: root/components/ProcessingSplash.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/ProcessingSplash.qml')
-rw-r--r--components/ProcessingSplash.qml27
1 files changed, 18 insertions, 9 deletions
diff --git a/components/ProcessingSplash.qml b/components/ProcessingSplash.qml
index 2f6725db..d7fbd5cb 100644
--- a/components/ProcessingSplash.qml
+++ b/components/ProcessingSplash.qml
@@ -31,17 +31,26 @@ import QtQuick.Window 2.1
import QtQuick.Controls 1.4
import QtQuick.Layouts 1.1
-Window {
+Rectangle {
id: root
- modality: Qt.ApplicationModal
- flags: Qt.Window
+ color: "white"
+ visible: false
+ z:11
property alias messageText: messageTitle.text
property alias heightProgressText : heightProgress.text
- width: 200
- height: 100
+ width: 200 * scaleRatio
+ height: 100 * scaleRatio
opacity: 0.7
+ function show() {
+ root.visible = true;
+ }
+
+ function close() {
+ root.visible = false;
+ }
+
ColumnLayout {
id: rootLayout
@@ -49,8 +58,8 @@ Window {
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
- anchors.leftMargin: 30
- anchors.rightMargin: 30
+ anchors.leftMargin: 30 * scaleRatio
+ anchors.rightMargin: 30 * scaleRatio
BusyIndicator {
running: parent.visible
@@ -61,7 +70,7 @@ Window {
id: messageTitle
text: "Please wait..."
font {
- pixelSize: 22
+ pixelSize: 22 * scaleRatio
}
horizontalAlignment: Text.AlignHCenter
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
@@ -72,7 +81,7 @@ Window {
Text {
id: heightProgress
font {
- pixelSize: 18
+ pixelSize: 18 * scaleRatio
}
horizontalAlignment: Text.AlignHCenter
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter