refresh register when click on account deactivated status
This commit is contained in:
parent
21e8e2aaba
commit
605ffdcdd5
2 changed files with 17 additions and 5 deletions
|
|
@ -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{
|
Item{
|
||||||
Layout.preferredWidth: Utils.getSizeWithScreenRatio(26)
|
Layout.preferredWidth: Utils.getSizeWithScreenRatio(26)
|
||||||
Layout.preferredHeight: Utils.getSizeWithScreenRatio(26)
|
Layout.preferredHeight: Utils.getSizeWithScreenRatio(26)
|
||||||
|
|
|
||||||
|
|
@ -13,10 +13,8 @@ import 'qrc:/qt/qml/Linphone/view/Style/buttonStyle.js' as ButtonStyle
|
||||||
|
|
||||||
PopupButton {
|
PopupButton {
|
||||||
id: presenceAndRegistrationItem
|
id: presenceAndRegistrationItem
|
||||||
Layout.minimumWidth: Utils.getSizeWithScreenRatio(86)
|
width: presenceOrRegistrationText.implicitWidth + Utils.getSizeWithScreenRatio(50)
|
||||||
Layout.maximumWidth: Utils.getSizeWithScreenRatio(150)
|
height: Utils.getSizeWithScreenRatio(24)
|
||||||
Layout.preferredHeight: Utils.getSizeWithScreenRatio(24)
|
|
||||||
Layout.preferredWidth: presenceOrRegistrationText.implicitWidth + Utils.getSizeWithScreenRatio(50)
|
|
||||||
enabled: mainItem.account && mainItem.account.core.registrationState === LinphoneEnums.RegistrationState.Ok
|
enabled: mainItem.account && mainItem.account.core.registrationState === LinphoneEnums.RegistrationState.Ok
|
||||||
onEnabledChanged: if(!enabled) close()
|
onEnabledChanged: if(!enabled) close()
|
||||||
property bool editCustomStatus : false
|
property bool editCustomStatus : false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue