From 45bd66002fe6b51ea9cb9f0e9ca47a4c4ab4b1d2 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Wed, 14 Sep 2016 15:19:12 +0200 Subject: [PATCH] fix(app): little fixes --- tests/ui/components/contact/Avatar.qml | 7 ++++--- tests/ui/views/mainWindow/contacts.qml | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/ui/components/contact/Avatar.qml b/tests/ui/components/contact/Avatar.qml index 4c0bd6db2..a0724fbb6 100644 --- a/tests/ui/components/contact/Avatar.qml +++ b/tests/ui/components/contact/Avatar.qml @@ -8,10 +8,11 @@ Item { property string presence property string username + // Image mask. (Circle) Rectangle { anchors.fill: parent color: '#8F8F8F' - id: avatar + id: mask radius: 50 } @@ -44,7 +45,7 @@ Item { // Avatar. OpacityMask { anchors.fill: imageToFilter - maskSource: avatar + maskSource: mask source: imageToFilter } @@ -53,7 +54,7 @@ Item { anchors.bottom: parent.bottom anchors.right: parent.right fillMode: Image.PreserveAspectFit - height: parent.height/ 3 + height: parent.height / 3 id: presenceImage source: presence ? 'qrc:/imgs/led_' + presence + '.svg' diff --git a/tests/ui/views/mainWindow/contacts.qml b/tests/ui/views/mainWindow/contacts.qml index 063ee5520..0184a7889 100644 --- a/tests/ui/views/mainWindow/contacts.qml +++ b/tests/ui/views/mainWindow/contacts.qml @@ -58,7 +58,7 @@ ColumnLayout { boundsBehavior: Flickable.StopAtBounds clip: true highlightRangeMode: ListView.ApplyRange - spacing: 1 + spacing: 2 // TODO: Remove, use C++ model instead. model: ListModel { @@ -233,7 +233,7 @@ ColumnLayout { ActionButton { iconSize: parent.height icon: 'delete' - onClicked: console.log('toto') + onClicked: console.log('action: delete') } } }