From 523854c3f08571cb1433e1ccd0f173ce0e1163bb Mon Sep 17 00:00:00 2001 From: Akira Ohgaki <akiraohgaki@gmail.com> Date: Wed, 1 Mar 2017 13:17:08 +0900 Subject: [PATCH] Fix for property --- app/qml/main.qml | 3 ++- app/qml/ui/Dialog.qml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/qml/main.qml b/app/qml/main.qml index 25568f3..430e9a3 100644 --- a/app/qml/main.qml +++ b/app/qml/main.qml @@ -114,12 +114,13 @@ Window { Ui.Dialog { id: progressDialog - //icon: StandardIcon.Warning + //icon: StandardIcon.NoIcon rejectButton.text: qsTr("Cancel") rejectButton.onClicked: Qt.quit() property alias progress: progressBar.value property alias progressText: progressText.text content: ColumnLayout { + anchors.fill: parent spacing: 8 ProgressBar { id: progressBar diff --git a/app/qml/ui/Dialog.qml b/app/qml/ui/Dialog.qml index ec632bc..348716b 100644 --- a/app/qml/ui/Dialog.qml +++ b/app/qml/ui/Dialog.qml @@ -34,7 +34,7 @@ ColumnLayout { source: "" width: 32 height: width - visible: source ? true : false + visible: source.toString() ? true : false } ColumnLayout { Layout.fillWidth: true -- GitLab