mobile-widgets: do not use fontmetric for height

In order to remove fontMetrics from QML, replace references (height)
in DownloadFromDiveComputer and Settings

Add include kirigami as needed

Signed-off-by: jan Iversen <jan@casacondor.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
jan Iversen 2020-01-14 21:29:08 +01:00 committed by Dirk Hohndel
parent 2cc215d3f2
commit 3d871ef0de
3 changed files with 9 additions and 9 deletions

View file

@ -91,9 +91,6 @@ Kirigami.ScrollablePage {
}
TemplateComboBox {
id: defaultCylinderBox
Layout.preferredHeight: fontMetrics.height * 2.5
inputMethodHints: Qt.ImhNoPredictiveText
Layout.fillWidth: true
onActivated: {
// the entry for 'no default cylinder' is known to be the top, but its text
// is possibly translated so check against the index