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
c61e941c
Commit
c61e941c
authored
13 years ago
by
Emmanuel Lepage
Browse files
Options
Downloads
Patches
Plain Diff
Fix bug in volume widget
parent
0c57c0f6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
kde/src/SFLPhoneView.cpp
+11
-10
11 additions, 10 deletions
kde/src/SFLPhoneView.cpp
kde/src/SFLPhoneView.h
+2
-2
2 additions, 2 deletions
kde/src/SFLPhoneView.h
kde/src/widgets/ContactDock.cpp
+1
-0
1 addition, 0 deletions
kde/src/widgets/ContactDock.cpp
with
14 additions
and
12 deletions
kde/src/SFLPhoneView.cpp
+
11
−
10
View file @
c61e941c
...
...
@@ -82,7 +82,7 @@ SFLPhoneView::SFLPhoneView(QWidget *parent)
connect
(
SFLPhone
::
model
()
,
SIGNAL
(
incomingCall
(
Call
*
))
,
this
,
SLOT
(
on1_incomingCall
(
Call
*
)
));
connect
(
SFLPhone
::
model
()
,
SIGNAL
(
voiceMailNotify
(
const
QString
&
,
int
))
,
this
,
SLOT
(
on1_voiceMailNotify
(
const
QString
&
,
int
)
));
connect
(
SFLPhone
::
model
()
,
SIGNAL
(
volumeChanged
(
const
QString
&
,
double
)),
this
,
SLOT
(
on1_volumeChanged
(
const
QString
&
,
double
)
));
//
connect(SFLPhone::model() , SIGNAL(volumeChanged(const QString &, double)), this , SLOT(on1_volumeChanged(const QString &, double) ));
connect
(
SFLPhone
::
model
()
,
SIGNAL
(
callStateChanged
(
Call
*
))
,
this
,
SLOT
(
updateWindowCallState
()
));
connect
(
TreeWidgetCallModel
::
getAccountList
()
,
SIGNAL
(
accountListUpdated
())
,
this
,
SLOT
(
updateStatusMessage
()
));
connect
(
TreeWidgetCallModel
::
getAccountList
()
,
SIGNAL
(
accountListUpdated
())
,
this
,
SLOT
(
updateWindowCallState
()
));
...
...
@@ -390,20 +390,20 @@ void SFLPhoneView::updateVolumeButton()
}
void
SFLPhoneView
::
updateRecordBar
()
void
SFLPhoneView
::
updateRecordBar
(
double
_value
)
{
qDebug
()
<<
"updateRecordBar"
;
CallManagerInterface
&
callManager
=
CallManagerInterfaceSingleton
::
getInstance
();
double
recVol
=
callManager
.
getVolume
(
RECORD_DEVICE
);
int
value
=
(
int
)(
recVol
*
100
);
qDebug
()
<<
"updateRecordBar"
<<
recVol
;
int
value
=
(
_value
>
0
)
?
_value
:
(
int
)(
recVol
*
100
);
slider_recVol
->
setValue
(
value
);
}
void
SFLPhoneView
::
updateVolumeBar
()
void
SFLPhoneView
::
updateVolumeBar
(
double
_value
)
{
qDebug
()
<<
"updateVolumeBar"
;
CallManagerInterface
&
callManager
=
CallManagerInterfaceSingleton
::
getInstance
();
double
sndVol
=
callManager
.
getVolume
(
SOUND_DEVICE
);
int
value
=
(
int
)(
sndVol
*
100
);
qDebug
()
<<
"updateVolumeBar"
<<
sndVol
;
int
value
=
(
_value
>
0
)
?
_value
:
(
int
)(
sndVol
*
100
);
slider_sndVol
->
setValue
(
value
);
}
...
...
@@ -737,11 +737,12 @@ void SFLPhoneView::on1_voiceMailNotify(const QString &accountID, int count)
void
SFLPhoneView
::
on1_volumeChanged
(
const
QString
&
/*device*/
,
double
value
)
{
qDebug
()
<<
"Signal : Volume Changed !"
;
//TODO uncomment after fixing infinite loop
qDebug
()
<<
"Signal : Volume Changed !"
<<
value
;
if
(
!
(
toolButton_recVol
->
isChecked
()
&&
value
==
0.0
))
updateRecordBar
();
updateRecordBar
(
value
);
if
(
!
(
toolButton_sndVol
->
isChecked
()
&&
value
==
0.0
))
updateVolumeBar
();
updateVolumeBar
(
value
);
}
// void SFLPhoneView::on1_audioManagerChanged()
...
...
This diff is collapsed.
Click to expand it.
kde/src/SFLPhoneView.h
+
2
−
2
View file @
c61e941c
...
...
@@ -166,8 +166,8 @@ private slots:
*/
void
updateRecordButton
();
void
updateVolumeButton
();
void
updateRecordBar
();
void
updateVolumeBar
();
void
updateRecordBar
(
double
_value
=
-
1
);
void
updateVolumeBar
(
double
_value
=
-
1
);
void
updateVolumeControls
();
void
updateDialpad
();
...
...
This diff is collapsed.
Click to expand it.
kde/src/widgets/ContactDock.cpp
+
1
−
0
View file @
c61e941c
...
...
@@ -86,6 +86,7 @@ ContactDock::ContactDock(QWidget* parent) : QDockWidget(parent)
QStringList
sortType
;
sortType
<<
"Name"
<<
"Organisation"
<<
"Phone number type"
<<
"Rencently used"
<<
"Group"
;
m_pSortByCBB
->
addItems
(
sortType
);
m_pSortByCBB
->
setDisabled
(
true
);
QWidget
*
mainWidget
=
new
QWidget
(
this
);
setWidget
(
mainWidget
);
...
...
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