From 33059cc20bc28af688e1305d3ce5d9319a8bdbaf Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Tue, 25 Oct 2016 14:44:20 +0200 Subject: [PATCH] feat(Popup/DropDownMenu): add `isOpen` function --- tests/ui/modules/Common/Popup/DropDownMenu.qml | 4 ++++ tests/ui/modules/Common/Styles/PopupStyle.qml | 2 +- tests/ui/modules/Linphone/Call/CallControls.qml | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/ui/modules/Common/Popup/DropDownMenu.qml b/tests/ui/modules/Common/Popup/DropDownMenu.qml index c7dfd3da8..4070563ad 100644 --- a/tests/ui/modules/Common/Popup/DropDownMenu.qml +++ b/tests/ui/modules/Common/Popup/DropDownMenu.qml @@ -28,6 +28,10 @@ Rectangle { signal menuClosed signal menuOpened + function isOpen () { + return visible + } + function showMenu () { if (visible) { return diff --git a/tests/ui/modules/Common/Styles/PopupStyle.qml b/tests/ui/modules/Common/Styles/PopupStyle.qml index e7374e7c4..844cf33c7 100644 --- a/tests/ui/modules/Common/Styles/PopupStyle.qml +++ b/tests/ui/modules/Common/Styles/PopupStyle.qml @@ -11,7 +11,7 @@ QtObject { property QtObject shadow: QtObject { property color color: Colors.f - property int horizontalOffset: 0 + property int horizontalOffset: 2 property int radius: 8 property int samples: 15 property int verticalOffset: 2 diff --git a/tests/ui/modules/Linphone/Call/CallControls.qml b/tests/ui/modules/Linphone/Call/CallControls.qml index d021ca9a7..fbc876c2d 100644 --- a/tests/ui/modules/Linphone/Call/CallControls.qml +++ b/tests/ui/modules/Linphone/Call/CallControls.qml @@ -31,7 +31,7 @@ RowLayout { Layout.preferredHeight: contact.height Layout.preferredWidth: 42 - color: '#434343' + color: menu.isOpen() ? '#FE5E00' : '#434343' Text { anchors.centerIn: parent @@ -56,7 +56,7 @@ RowLayout { height: 100 launcher: button relativeTo: button - relativeX: button.width + relativeX: button.width + 1 width: 120 Rectangle {