Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Plasma Phone Components
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
26
Issues
26
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Plasma
Plasma Phone Components
Commits
b7b6691c
Commit
b7b6691c
authored
Jun 29, 2015
by
Martin Klapetek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[dialer] Add basic call failures handler
parent
e528b417
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
dialer/package/contents/ui/Dialer/Dialer.qml
dialer/package/contents/ui/Dialer/Dialer.qml
+18
-0
dialer/src/dialerutils.cpp
dialer/src/dialerutils.cpp
+1
-0
No files found.
dialer/package/contents/ui/Dialer/Dialer.qml
View file @
b7b6691c
...
...
@@ -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
...
...
dialer/src/dialerutils.cpp
View file @
b7b6691c
...
...
@@ -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"
);
}
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment