mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
mobile/dive-list: avoid using undefined value as boolean
This gets rid of an annoying and noisy warning. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
eef41a3403
commit
c406ad83ea
1 changed files with 4 additions and 4 deletions
|
@ -182,7 +182,7 @@ Kirigami.ScrollablePage {
|
|||
id: locationText
|
||||
text: (undefined !== location && "" != location) ? location : qsTr("<unnamed dive site>")
|
||||
font.weight: Font.Medium
|
||||
font.strikeout: isInvalid
|
||||
font.strikeout: isInvalid !== undefined ? isInvalid : false
|
||||
font.pointSize: subsurfaceTheme.smallPointSize
|
||||
elide: Text.ElideRight
|
||||
maximumLineCount: 1 // needed for elide to work at all
|
||||
|
@ -207,7 +207,7 @@ Kirigami.ScrollablePage {
|
|||
text: (undefined !== dateTime) ? dateTime : ""
|
||||
width: Math.max(locationText.width * 0.45, paintedWidth) // helps vertical alignment throughout listview
|
||||
font.pointSize: subsurfaceTheme.smallPointSize
|
||||
font.strikeout: isInvalid
|
||||
font.strikeout: isInvalid !== undefined ? isInvalid : false
|
||||
color: selected ? subsurfaceTheme.darkerPrimaryTextColor : subsurfaceTheme.secondaryTextColor
|
||||
}
|
||||
// spacer, just in case
|
||||
|
@ -220,7 +220,7 @@ Kirigami.ScrollablePage {
|
|||
text: (undefined !== depthDuration) ? depthDuration : ""
|
||||
width: Math.max(Kirigami.Units.gridUnit * 3, paintedWidth) // helps vertical alignment throughout listview
|
||||
font.pointSize: subsurfaceTheme.smallPointSize
|
||||
font.strikeout: isInvalid
|
||||
font.strikeout: isInvalid !== undefined ? isInvalid : false
|
||||
color: selected ? subsurfaceTheme.darkerPrimaryTextColor : subsurfaceTheme.secondaryTextColor
|
||||
}
|
||||
}
|
||||
|
@ -228,7 +228,7 @@ Kirigami.ScrollablePage {
|
|||
id: numberText
|
||||
text: "#" + number
|
||||
font.pointSize: subsurfaceTheme.smallPointSize
|
||||
font.strikeout: isInvalid
|
||||
font.strikeout: isInvalid !== undefined ? isInvalid : false
|
||||
color: selected ? subsurfaceTheme.darkerPrimaryTextColor : subsurfaceTheme.secondaryTextColor
|
||||
anchors {
|
||||
right: parent.right
|
||||
|
|
Loading…
Reference in a new issue