mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-27 06:33:08 +00:00
[dialer] Add basic call failures handler
This commit is contained in:
parent
e528b41780
commit
b7b6691c19
2 changed files with 19 additions and 0 deletions
|
|
@ -35,6 +35,24 @@ Item {
|
|||
status.text = status.text + number
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
width: parent.width / 2
|
||||
x: parent.width / 4
|
||||
y: parent.height - callStatusNotification.paintedHeight
|
||||
color: PlasmaCore.ColorScope.backgroundColor
|
||||
opacity: 0.6
|
||||
visible: dialerUtils.callState == "failing"
|
||||
|
||||
PlasmaComponents.Label {
|
||||
id: callStatusNotification
|
||||
anchors.fill: parent
|
||||
text: "Unable to make a call at this moment"
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
wrapMode: Text.WordWrap
|
||||
color: PlasmaCore.ColorScope.textColor
|
||||
}
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
id: dialPadArea
|
||||
|
||||
|
|
|
|||
|
|
@ -66,6 +66,7 @@ void DialerUtils::dial(const QString &number)
|
|||
connect(pendingChannel, &Tp::PendingChannelRequest::finished, [=](){
|
||||
if (pendingChannel->isError()) {
|
||||
qWarning() << "Error when requesting channel" << pendingChannel->errorMessage();
|
||||
setCallState("failed");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue