summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/DiveList.qml11
1 files changed, 9 insertions, 2 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml
index cb94e79d1..59a23fe63 100644
--- a/mobile-widgets/qml/DiveList.qml
+++ b/mobile-widgets/qml/DiveList.qml
@@ -1,4 +1,4 @@
-import QtQuick 2.4
+import QtQuick 2.6
import QtQuick.Controls 1.2
import QtQuick.Layouts 1.2
import QtQuick.Window 2.2
@@ -244,7 +244,14 @@ Kirigami.ScrollablePage {
}
}
- Kirigami.Label {
+ Text {
+ // make sure this gets pushed far enough down so that it's not obscured by the page title
+ // it would be nicer to use Kirigami.Label, but due to a QML bug that isn't possible with a
+ // weird "component versioning" error
+ // using this property means that we require Qt 5.6 / QtQuick2.6
+ topPadding: Kirigami.Units.iconSizes.large
+ leftPadding: Kirigami.Units.iconSizes.large
+
text: qsTr("No dives in dive list")
visible: diveListView.visible && diveListView.count === 0
}