summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DownloadFromDiveComputer.qml
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2017-05-12 17:55:19 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-27 11:07:19 -0700
commit9951592216366edf181ebf94355fe445fd74b87a (patch)
tree224a12b34b636896c7fffe412629bd9ef2c2cb7e /mobile-widgets/qml/DownloadFromDiveComputer.qml
parent8056e16589d31d4b6392569a842c7ee37e1ce965 (diff)
downloadsubsurface-9951592216366edf181ebf94355fe445fd74b87a.tar.gz
QML UI: fix the layout for the Download from DC
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DownloadFromDiveComputer.qml')
-rw-r--r--mobile-widgets/qml/DownloadFromDiveComputer.qml28
1 files changed, 12 insertions, 16 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml
index 20e1675c0..a5ccb9b6f 100644
--- a/mobile-widgets/qml/DownloadFromDiveComputer.qml
+++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml
@@ -1,10 +1,10 @@
// SPDX-License-Identifier: GPL-2.0
-import QtQuick 2.3
+import QtQuick 2.6
import QtQuick.Controls 1.4 as QQC1
-import QtQuick.Controls 2.0
+import QtQuick.Controls 2.1
import QtQuick.Window 2.2
import QtQuick.Dialogs 1.2
-import QtQuick.Layouts 1.1
+import QtQuick.Layouts 1.3
import org.subsurfacedivelog.mobile 1.0
import org.kde.kirigami 2.0 as Kirigami
@@ -33,21 +33,17 @@ Kirigami.Page {
height: parent.height
width: parent.width
Layout.fillWidth: true
- RowLayout {
- anchors.top:parent.top
- Layout.fillWidth: true
- Kirigami.Label { text: qsTr(" Vendor name: ") }
- ComboBox { Layout.fillWidth: true }
+ GridLayout {
+ columns: 2
+ Kirigami.Label { text: qsTr(" Vendor name: ") } ComboBox { Layout.fillWidth: true }
+ Kirigami.Label { text: qsTr(" Dive Computer:") } ComboBox { Layout.fillWidth: true }
}
- RowLayout {
- Kirigami.Label { text: qsTr(" Dive Computer:") }
- ComboBox { Layout.fillWidth: true }
- }
- RowLayout {
- Kirigami.Label { text: " Progress:" }
+
+ ProgressBar {
Layout.fillWidth: true
- ProgressBar { Layout.fillWidth: true }
+ visible: false
}
+
RowLayout {
Button {
text: qsTr("Download")
@@ -89,7 +85,7 @@ Kirigami.Page {
role: "depth"
title: qsTr("Depth")
}
- }
+ }
RowLayout {
Layout.fillWidth: true
Button {