QML UI: move 'No dives in dive list' down

Otherwise it overlaps with the page title.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-01-21 16:22:15 -08:00
parent affea807c8
commit fc60f210c4

View file

@ -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
}