Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
8e1dc78f
Commit
8e1dc78f
authored
15 years ago
by
Jérémy Quentin
Browse files
Options
Downloads
Patches
Plain Diff
Issue no 1216 : Double click on item in history or address book causes call.
parent
44f00314
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sflphone_kde/sflphone_kdeview.cpp
+26
-0
26 additions, 0 deletions
sflphone_kde/sflphone_kdeview.cpp
sflphone_kde/sflphone_kdeview.h
+2
-0
2 additions, 0 deletions
sflphone_kde/sflphone_kdeview.h
with
28 additions
and
0 deletions
sflphone_kde/sflphone_kdeview.cpp
+
26
−
0
View file @
8e1dc78f
...
...
@@ -842,6 +842,32 @@ void sflphone_kdeView::on_listWidget_callList_itemDoubleClicked(QListWidgetItem
}
}
void
sflphone_kdeView
::
on_listWidget_callHistory_itemDoubleClicked
(
QListWidgetItem
*
item
)
{
qDebug
()
<<
"on_listWidget_callHistory_itemDoubleClicked"
;
action_history
->
setChecked
(
false
);
stackedWidget_screen
->
setCurrentWidget
(
page_callList
);
Call
*
pastCall
=
callList
->
findCallByHistoryItem
(
listWidget_callHistory
->
currentItem
());
Call
*
call
=
callList
->
addDialingCall
(
pastCall
->
getPeerName
());
call
->
appendItemText
(
pastCall
->
getPeerPhoneNumber
());
addCallToCallList
(
call
);
listWidget_callList
->
setCurrentRow
(
listWidget_callList
->
count
()
-
1
);
actionb
(
call
,
CALL_ACTION_ACCEPT
);
}
void
sflphone_kdeView
::
on_listWidget_addressBook_itemDoubleClicked
(
QListWidgetItem
*
item
)
{
qDebug
()
<<
"on_listWidget_addressBook_itemDoubleClicked"
;
action_addressBook
->
setChecked
(
false
);
stackedWidget_screen
->
setCurrentWidget
(
page_callList
);
ContactItemWidget
*
w
=
(
ContactItemWidget
*
)
(
listWidget_addressBook
->
itemWidget
(
listWidget_addressBook
->
currentItem
()));
Call
*
call
=
callList
->
addDialingCall
(
w
->
getContactName
());
call
->
appendItemText
(
w
->
getContactNumber
());
addCallToCallList
(
call
);
listWidget_callList
->
setCurrentRow
(
listWidget_callList
->
count
()
-
1
);
actionb
(
call
,
CALL_ACTION_ACCEPT
);
}
void
sflphone_kdeView
::
contextMenuEvent
(
QContextMenuEvent
*
event
)
{
...
...
This diff is collapsed.
Click to expand it.
sflphone_kde/sflphone_kdeview.h
+
2
−
0
View file @
8e1dc78f
...
...
@@ -168,7 +168,9 @@ private slots:
void
on_listWidget_callList_itemChanged
();
void
on_listWidget_callList_itemDoubleClicked
(
QListWidgetItem
*
item
);
void
on_listWidget_callHistory_currentItemChanged
();
void
on_listWidget_callHistory_itemDoubleClicked
(
QListWidgetItem
*
item
);
void
on_listWidget_addressBook_currentItemChanged
();
void
on_listWidget_addressBook_itemDoubleClicked
(
QListWidgetItem
*
item
);
void
on1_callStateChanged
(
const
QString
&
callID
,
const
QString
&
state
);
void
on1_error
(
MapStringString
details
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment