Quit Linphone option

This commit is contained in:
Christophe Deschamps 2024-10-08 11:47:18 +02:00
parent a1ff962d1d
commit a7bea5323f
3 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,3 @@
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M15 16V6C15 5.73478 15.1054 5.48043 15.2929 5.29289C15.4804 5.10536 15.7348 5 16 5C16.2652 5 16.5196 5.10536 16.7071 5.29289C16.8946 5.48043 17 5.73478 17 6V16C17 16.2652 16.8946 16.5196 16.7071 16.7071C16.5196 16.8946 16.2652 17 16 17C15.7348 17 15.4804 16.8946 15.2929 16.7071C15.1054 16.5196 15 16.2652 15 16ZM22.5462 6.1625C22.3242 6.02213 22.0557 5.9748 21.799 6.03076C21.5423 6.08671 21.3179 6.24144 21.1744 6.46151C21.0309 6.68158 20.9797 6.94929 21.032 7.20678C21.0842 7.46426 21.2358 7.69083 21.4538 7.8375C24.3425 9.72125 26 12.6962 26 16C26 18.6522 24.9464 21.1957 23.0711 23.0711C21.1957 24.9464 18.6522 26 16 26C13.3478 26 10.8043 24.9464 8.92893 23.0711C7.05357 21.1957 6 18.6522 6 16C6 12.6962 7.6575 9.72125 10.5463 7.8375C10.7642 7.69083 10.9157 7.46426 10.968 7.20678C11.0203 6.94929 10.9691 6.68158 10.8256 6.46151C10.6821 6.24144 10.4577 6.08671 10.201 6.03076C9.94427 5.9748 9.67585 6.02213 9.45375 6.1625C5.9875 8.4225 4 12.0075 4 16C4 19.1826 5.26428 22.2348 7.51472 24.4853C9.76515 26.7357 12.8174 28 16 28C19.1826 28 22.2348 26.7357 24.4853 24.4853C26.7357 22.2348 28 19.1826 28 16C28 12.0075 26.0125 8.4225 22.5462 6.1625Z" fill="#6C7A87"/>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

View file

@ -559,6 +559,30 @@ Item {
KeyNavigation.up: visibleChildren.length != 0 ? settingsButtons.getPreviousItem(3) : null
KeyNavigation.down: visibleChildren.length != 0 ? settingsButtons.getNextItem(3) : null
}
IconLabelButton {
id: quitButton
Layout.preferredHeight: 32 * DefaultStyle.dp
Layout.fillWidth: true
focus: !accountButton.visible && !settingsButton.visible && visible
iconSize: 32 * DefaultStyle.dp
text: qsTr("Quitter Linphone")
iconSource: AppIcons.power
onClicked: {
settingsMenuButton.popup.close()
UtilsCpp.getMainWindow().showConfirmationLambdaPopup(
qsTr("Quitter Linphone ?"),
"",
function (confirmed) {
if (confirmed) {
console.info("Exiting App from Top Menu");
Qt.quit()
}
}
)
}
KeyNavigation.up: visibleChildren.length != 0 ? settingsButtons.getPreviousItem(4) : null
KeyNavigation.down: visibleChildren.length != 0 ? settingsButtons.getNextItem(4) : null
}
Rectangle {
Layout.fillWidth: true
Layout.preferredHeight: 1 * DefaultStyle.dp

View file

@ -117,4 +117,5 @@ QtObject {
property string bellDnd: "image://internal/bell-dnd.svg"
property string bellRinger: "image://internal/bell-ringer.svg"
property string voicemail: "image://internal/voicemail.svg"
property string power: "image://internal/power.svg"
}