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
b17f51cf
Commit
b17f51cf
authored
13 years ago
by
Emmanuel Lepage
Browse files
Options
Downloads
Patches
Plain Diff
[ #7901 ] Do not show the conf button when in the same conference
parent
e1c2c4ce
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
kde/src/widgets/CallTreeItem.cpp
+13
-1
13 additions, 1 deletion
kde/src/widgets/CallTreeItem.cpp
kde/src/widgets/CallTreeItem.h
+1
-0
1 addition, 0 deletions
kde/src/widgets/CallTreeItem.h
with
14 additions
and
1 deletion
kde/src/widgets/CallTreeItem.cpp
+
13
−
1
View file @
b17f51cf
...
...
@@ -34,6 +34,7 @@
#include
<QtGui/QDragMoveEvent>
#include
<QtGui/QDragLeaveEvent>
#include
<QtGui/QPushButton>
#include
<QtGui/QTreeWidgetItem>
//KDE
#include
<KLocale>
...
...
@@ -49,6 +50,7 @@
//SFLPhone
#include
"AkonadiBackend.h"
#include
"widgets/TranslucentButtons.h"
#include
"SFLPhone.h"
///Constant
const
char
*
CallTreeItem
::
callStateIcons
[
12
]
=
{
ICON_INCOMING
,
ICON_RINGING
,
ICON_CURRENT
,
ICON_DIALING
,
ICON_HOLD
,
ICON_FAILURE
,
ICON_BUSY
,
ICON_TRANSFER
,
ICON_TRANSF_HOLD
,
""
,
""
,
ICON_CONFERENCE
};
...
...
@@ -242,7 +244,17 @@ void CallTreeItem::updated()
void
CallTreeItem
::
dragEnterEvent
(
QDragEnterEvent
*
e
)
{
kDebug
()
<<
"Drag enter"
;
if
(
e
->
mimeData
()
->
hasFormat
(
MIME_CALLID
)
&&
m_pBtnTrans
&&
(
e
->
mimeData
()
->
data
(
MIME_CALLID
)
!=
m_pItemCall
->
getCallId
()))
{
if
(
SFLPhone
::
model
()
->
getIndex
(
this
)
->
parent
()
&&
SFLPhone
::
model
()
->
getIndex
(
e
->
mimeData
()
->
data
(
MIME_CALLID
))
->
parent
()
&&
SFLPhone
::
model
()
->
getIndex
(
this
)
->
parent
()
==
SFLPhone
::
model
()
->
getIndex
(
e
->
mimeData
()
->
data
(
MIME_CALLID
))
->
parent
()
&&
e
->
mimeData
()
->
data
(
MIME_CALLID
)
!=
SFLPhone
::
model
()
->
getCall
(
this
)
->
getCallId
())
{
m_pBtnTrans
->
setVisible
(
true
);
emit
showChilds
(
this
);
m_pBtnConf
->
forceDragState
(
e
);
m_isHover
=
true
;
e
->
accept
();
}
else
if
(
e
->
mimeData
()
->
hasFormat
(
MIME_CALLID
)
&&
m_pBtnTrans
&&
(
e
->
mimeData
()
->
data
(
MIME_CALLID
)
!=
m_pItemCall
->
getCallId
()))
{
m_pBtnConf
->
setVisible
(
true
);
m_pBtnTrans
->
setVisible
(
true
);
emit
showChilds
(
this
);
...
...
This diff is collapsed.
Click to expand it.
kde/src/widgets/CallTreeItem.h
+
1
−
0
View file @
b17f51cf
...
...
@@ -74,6 +74,7 @@ class CallTreeItem : public QWidget
TranslucentButtons
*
m_pBtnTrans
;
protected:
//Reimplementation
virtual
void
dragEnterEvent
(
QDragEnterEvent
*
e
);
virtual
void
dragMoveEvent
(
QDragMoveEvent
*
e
);
virtual
void
dragLeaveEvent
(
QDragLeaveEvent
*
e
);
...
...
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