From dedf2087ce9a310d3f91c09a4879400f696415f7 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Mon, 13 Feb 2017 15:13:07 +0100 Subject: [PATCH] fix(ui/modules/Common/Form/ListForm): use correctly `selectedByMouse` --- linphone-desktop/ui/modules/Common/Form/ListForm.qml | 1 - .../ui/modules/Common/Form/TransparentTextInput.qml | 1 + linphone-desktop/ui/views/App/Settings/SettingsCallsChat.qml | 4 +++- .../ui/views/App/Styles/Settings/SettingsWindowStyle.qml | 4 ++++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/linphone-desktop/ui/modules/Common/Form/ListForm.qml b/linphone-desktop/ui/modules/Common/Form/ListForm.qml index f091d462a..f68ba8190 100644 --- a/linphone-desktop/ui/modules/Common/Form/ListForm.qml +++ b/linphone-desktop/ui/modules/Common/Form/ListForm.qml @@ -167,7 +167,6 @@ RowLayout { inputMethodHints: listForm.inputMethodHints isInvalid: $isInvalid readOnly: listForm.readOnly - selectByMouse: true text: $value height: ListFormStyle.lineHeight diff --git a/linphone-desktop/ui/modules/Common/Form/TransparentTextInput.qml b/linphone-desktop/ui/modules/Common/Form/TransparentTextInput.qml index e5722e9f5..630d27193 100644 --- a/linphone-desktop/ui/modules/Common/Form/TransparentTextInput.qml +++ b/linphone-desktop/ui/modules/Common/Form/TransparentTextInput.qml @@ -93,6 +93,7 @@ Item { ? TransparentTextInputStyle.text.color.focused : TransparentTextInputStyle.text.color.normal font.pointSize: TransparentTextInputStyle.text.fontSize + selectByMouse: true verticalAlignment: TextInput.AlignVCenter Keys.onEscapePressed: focus = false diff --git a/linphone-desktop/ui/views/App/Settings/SettingsCallsChat.qml b/linphone-desktop/ui/views/App/Settings/SettingsCallsChat.qml index 90a653795..7a7d116f1 100644 --- a/linphone-desktop/ui/views/App/Settings/SettingsCallsChat.qml +++ b/linphone-desktop/ui/views/App/Settings/SettingsCallsChat.qml @@ -2,12 +2,14 @@ import QtQuick 2.7 import Common 1.0 +import App.Styles 1.0 + // ============================================================================= TabContainer { Column { anchors.fill: parent - spacing: 10 + spacing: SettingsWindowStyle.forms.spacing Form { title: qsTr('callsTitle') diff --git a/linphone-desktop/ui/views/App/Styles/Settings/SettingsWindowStyle.qml b/linphone-desktop/ui/views/App/Styles/Settings/SettingsWindowStyle.qml index 5983b124c..4d627ce98 100644 --- a/linphone-desktop/ui/views/App/Styles/Settings/SettingsWindowStyle.qml +++ b/linphone-desktop/ui/views/App/Styles/Settings/SettingsWindowStyle.qml @@ -7,6 +7,10 @@ QtObject { property int height: 640 property int width: 1024 + property QtObject forms: QtObject { + property int spacing: 10 + } + property QtObject validButton: QtObject { property int bottomMargin: 30 property int rightMargin: 30