diff --git a/tests/ui/modules/Common/DroppableTextArea.qml b/tests/ui/modules/Common/DroppableTextArea.qml index 99f194e41..c452b5399 100644 --- a/tests/ui/modules/Common/DroppableTextArea.qml +++ b/tests/ui/modules/Common/DroppableTextArea.qml @@ -70,7 +70,6 @@ Item { Icon { anchors.fill: parent - fillMode: Image.PreserveAspectFit icon: 'chat_attachment' } } diff --git a/tests/ui/modules/Linphone/Chat/Event.qml b/tests/ui/modules/Linphone/Chat/Event.qml index 0a61715b8..0859389ee 100644 --- a/tests/ui/modules/Linphone/Chat/Event.qml +++ b/tests/ui/modules/Linphone/Chat/Event.qml @@ -5,20 +5,20 @@ import Utils 1.0 // =================================================================== Text { - Component { - // Never created. - // Private data for `lupdate`. - Item { - property var i18n: [ - QT_TR_NOOP('hangup'), - QT_TR_NOOP('incomingCall'), - QT_TR_NOOP('lostIncomingCall'), - QT_TR_NOOP('lostOutgoingCall') - ] - } + Component { + // Never created. + // Private data for `lupdate`. + Item { + property var i18n: [ + QT_TR_NOOP('hangup'), + QT_TR_NOOP('incomingCall'), + QT_TR_NOOP('lostIncomingCall'), + QT_TR_NOOP('lostOutgoingCall') + ] } + } - color: '#898989' - font.bold: true - text: qsTr(Utils.snakeToCamel($content)) + color: '#898989' + font.bold: true + text: qsTr(Utils.snakeToCamel($content)) } diff --git a/tests/ui/modules/Linphone/Chat/IncomingMessage.qml b/tests/ui/modules/Linphone/Chat/IncomingMessage.qml index 3ea5707e7..c55507afb 100644 --- a/tests/ui/modules/Linphone/Chat/IncomingMessage.qml +++ b/tests/ui/modules/Linphone/Chat/IncomingMessage.qml @@ -6,22 +6,22 @@ import Linphone 1.0 // =================================================================== Item { - implicitHeight: message.height + implicitHeight: message.height - RowLayout { - anchors.fill: parent - spacing: 10 + RowLayout { + anchors.fill: parent + spacing: 10 - Avatar { - Layout.alignment: Qt.AlignTop - Layout.preferredHeight: 30 - Layout.preferredWidth: 30 - } - - Message { - Layout.fillWidth: true - backgroundColor: '#BFBFBF' - id: message - } + Avatar { + Layout.alignment: Qt.AlignTop + Layout.preferredHeight: 30 + Layout.preferredWidth: 30 } + + Message { + Layout.fillWidth: true + backgroundColor: '#BFBFBF' + id: message + } + } } diff --git a/tests/ui/modules/Linphone/Chat/Message.qml b/tests/ui/modules/Linphone/Chat/Message.qml index 44c7ae40c..b35395a5a 100644 --- a/tests/ui/modules/Linphone/Chat/Message.qml +++ b/tests/ui/modules/Linphone/Chat/Message.qml @@ -3,38 +3,38 @@ import QtQuick 2.7 // =================================================================== Item { - default property alias content: content.data - property alias backgroundColor: rectangle.color + default property alias content: content.data + property alias backgroundColor: rectangle.color - id: container - implicitHeight: text.contentHeight + text.padding * 2 - width: parent.width - text.padding * 2 + id: container + implicitHeight: text.contentHeight + text.padding * 2 + width: parent.width - text.padding * 2 - Rectangle { - id: rectangle - height: parent.height - radius: 4 - width: ( - text.contentWidth < parent.width - ? text.contentWidth - : parent.width - ) + text.padding * 2 - } + Rectangle { + id: rectangle + height: parent.height + radius: 4 + width: ( + text.contentWidth < parent.width + ? text.contentWidth + : parent.width + ) + text.padding * 2 + } - Text { - anchors.left: container.left - anchors.right: container.right - id: text - padding: 8 - text: $content - wrapMode: Text.Wrap + Text { + anchors.left: container.left + anchors.right: container.right + id: text + padding: 8 + text: $content + wrapMode: Text.Wrap - // Little fix. Text may disappear with scrolling. - renderType: Text.NativeRendering - } + // Little fix. Text may disappear with scrolling. + renderType: Text.NativeRendering + } - Item { - anchors.left: rectangle.right - id: content - } + Item { + anchors.left: rectangle.right + id: content + } } diff --git a/tests/ui/modules/Linphone/Chat/OutgoingMessage.qml b/tests/ui/modules/Linphone/Chat/OutgoingMessage.qml index 5945811bd..7e5f12ba2 100644 --- a/tests/ui/modules/Linphone/Chat/OutgoingMessage.qml +++ b/tests/ui/modules/Linphone/Chat/OutgoingMessage.qml @@ -5,17 +5,17 @@ import Common 1.0 import Linphone 1.0 Message { - backgroundColor: '#E4E4E4' + backgroundColor: '#E4E4E4' - Item { - height: 30 - width: 30 + Item { + height: 30 + width: 30 - // TODO: Success and re-send icon. - Icon { - anchors.centerIn: parent - icon: 'valid' - iconSize: 16 - } + // TODO: Success and re-send icon. + Icon { + anchors.centerIn: parent + icon: 'valid' + iconSize: 16 } + } }