diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-03-30 10:38:20 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-31 08:42:20 -0700 |
commit | c406ad83ea648e5559cecc7f22baab93347706f5 (patch) | |
tree | eee79885575d5c366428ad581047cee02c912870 /mobile-widgets/qml/DiveList.qml | |
parent | eef41a34037b376137265ac73f533a9c2f79ea60 (diff) | |
download | subsurface-c406ad83ea648e5559cecc7f22baab93347706f5.tar.gz |
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>
Diffstat (limited to 'mobile-widgets/qml/DiveList.qml')
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index 14522fdd5..76e8a52f9 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -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 |