diff options
author | jan Iversen <jan@casacondor.com> | 2020-01-14 21:29:08 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-01-30 07:52:31 +0200 |
commit | 3d871ef0de72c175df555d68de09d551c307490e (patch) | |
tree | aab694c2f11d53a0c507acf58dfbe721d4f7ed7b /mobile-widgets/qml/TemplateComboBox.qml | |
parent | 2cc215d3f26788974b1d5c552cb3750ad6bf8d85 (diff) | |
download | subsurface-3d871ef0de72c175df555d68de09d551c307490e.tar.gz |
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>
Diffstat (limited to 'mobile-widgets/qml/TemplateComboBox.qml')
-rw-r--r-- | mobile-widgets/qml/TemplateComboBox.qml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mobile-widgets/qml/TemplateComboBox.qml b/mobile-widgets/qml/TemplateComboBox.qml index 0583a7c6c..4ebaa7584 100644 --- a/mobile-widgets/qml/TemplateComboBox.qml +++ b/mobile-widgets/qml/TemplateComboBox.qml @@ -2,8 +2,11 @@ import QtQuick 2.11 import QtQuick.Controls 2.4 import QtQuick.Layouts 1.11 +import org.kde.kirigami 2.4 as Kirigami ComboBox { Layout.fillWidth: true + Layout.preferredHeight: Kirigami.Units.gridUnit * 2.5 + inputMethodHints: Qt.ImhNoPredictiveText font.pointSize: subsurfaceTheme.regularPointSize } |