From b089584981963a3ff27bb51fe9405f8e0c845c32 Mon Sep 17 00:00:00 2001 From: dorian Date: Fri, 29 Mar 2019 21:15:24 +0100 Subject: [PATCH] - fixed text sizing issue at switch delegate --- qml/components/InputDelegate.qml | 1 + qml/components/SmoothItemDelegate.qml | 2 ++ qml/components/SmoothSwitchDelegate.qml | 1 + 3 files changed, 4 insertions(+) diff --git a/qml/components/InputDelegate.qml b/qml/components/InputDelegate.qml index 39c6477..1edcaa3 100644 --- a/qml/components/InputDelegate.qml +++ b/qml/components/InputDelegate.qml @@ -13,6 +13,7 @@ SmoothItemDelegate { text: qsTr("delay (ms)") width: parent.width + rightPadding: textField.width * 1.2 height: parent.delegateHeight TextField { diff --git a/qml/components/SmoothItemDelegate.qml b/qml/components/SmoothItemDelegate.qml index 49810e9..bde655f 100644 --- a/qml/components/SmoothItemDelegate.qml +++ b/qml/components/SmoothItemDelegate.qml @@ -17,6 +17,8 @@ ItemDelegate { verticalCenter: parent.verticalCenter left: parent.left leftMargin: control.width * 0.02 + right: parent.right + rightMargin: control.rightPadding } text: control.text diff --git a/qml/components/SmoothSwitchDelegate.qml b/qml/components/SmoothSwitchDelegate.qml index 4c7cccd..8942d21 100644 --- a/qml/components/SmoothSwitchDelegate.qml +++ b/qml/components/SmoothSwitchDelegate.qml @@ -20,6 +20,7 @@ SwitchDelegate { left: parent.left right: indicator.left leftMargin: control.width * 0.02 + rightMargin: control.width * 0.01 } text: control.text