mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
affea807c8
commit
fc60f210c4
1 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue