diff --git a/Linphone/view/Control/Display/Contact/Contact.qml b/Linphone/view/Control/Display/Contact/Contact.qml index 0b6ee84a9..9ee7b2349 100644 --- a/Linphone/view/Control/Display/Contact/Contact.qml +++ b/Linphone/view/Control/Display/Contact/Contact.qml @@ -95,7 +95,21 @@ Control.Control{ } } } - ContactStatusPopup{} + Item { + Layout.minimumWidth: Utils.getSizeWithScreenRatio(86) + Layout.maximumWidth: Utils.getSizeWithScreenRatio(150) + width: contactStatusPopup.width + height: contactStatusPopup.height + ContactStatusPopup{ + id: contactStatusPopup + } + MouseArea { + anchors.fill: contactStatusPopup + enabled: !contactStatusPopup.enabled + cursorShape: Qt.PointingHandCursor + onClicked: mainItem.account.core.lSetRegisterEnabled(true) + } + } Item{ Layout.preferredWidth: Utils.getSizeWithScreenRatio(26) Layout.preferredHeight: Utils.getSizeWithScreenRatio(26) diff --git a/Linphone/view/Control/Display/Contact/ContactStatusPopup.qml b/Linphone/view/Control/Display/Contact/ContactStatusPopup.qml index a095e1089..c209ca22d 100644 --- a/Linphone/view/Control/Display/Contact/ContactStatusPopup.qml +++ b/Linphone/view/Control/Display/Contact/ContactStatusPopup.qml @@ -13,10 +13,8 @@ import 'qrc:/qt/qml/Linphone/view/Style/buttonStyle.js' as ButtonStyle PopupButton { id: presenceAndRegistrationItem - Layout.minimumWidth: Utils.getSizeWithScreenRatio(86) - Layout.maximumWidth: Utils.getSizeWithScreenRatio(150) - Layout.preferredHeight: Utils.getSizeWithScreenRatio(24) - Layout.preferredWidth: presenceOrRegistrationText.implicitWidth + Utils.getSizeWithScreenRatio(50) + width: presenceOrRegistrationText.implicitWidth + Utils.getSizeWithScreenRatio(50) + height: Utils.getSizeWithScreenRatio(24) enabled: mainItem.account && mainItem.account.core.registrationState === LinphoneEnums.RegistrationState.Ok onEnabledChanged: if(!enabled) close() property bool editCustomStatus : false