Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
1d288ae6
Commit
1d288ae6
authored
Apr 17, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: cosmetics
parent
546624cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
modules/gui/qt4/components/controller_widget.cpp
modules/gui/qt4/components/controller_widget.cpp
+2
-3
modules/gui/qt4/components/controller_widget.hpp
modules/gui/qt4/components/controller_widget.hpp
+5
-2
No files found.
modules/gui/qt4/components/controller_widget.cpp
View file @
1d288ae6
...
...
@@ -35,7 +35,6 @@
#include <QLabel>
#include <QHBoxLayout>
#include <QSpinBox>
#include <QMenu>
#include <QWidgetAction>
#include <QMouseEvent>
...
...
@@ -164,8 +163,8 @@ void SoundWidget::libUpdateVolume()
i_volume
=
aout_VolumeGet
(
p_playlist
);
i_volume
=
(
(
i_volume
+
1
)
*
VOLUME_MAX
)
/
(
AOUT_VOLUME_MAX
/
2
);
int
i_gauge
=
volumeSlider
->
value
();
if
(
i_volume
-
i_gauge
!=
0
)
if
(
i_volume
-
volumeSlider
->
value
()
!=
0
)
{
b_ignore_valuechanged
=
true
;
volumeSlider
->
setValue
(
i_volume
);
...
...
modules/gui/qt4/components/controller_widget.hpp
View file @
1d288ae6
...
...
@@ -31,10 +31,10 @@
#include "qt4.hpp"
#include <QWidget>
#include <QFrame>
#include <QToolButton>
class
QLabel
;
class
QFrame
;
class
QSpinBox
;
class
QAbstractSlider
;
...
...
@@ -78,13 +78,16 @@ public:
virtual
~
SoundWidget
();
void
setMuted
(
bool
);
protected:
virtual
bool
eventFilter
(
QObject
*
obj
,
QEvent
*
e
);
private:
intf_thread_t
*
p_intf
;
QLabel
*
volMuteLabel
;
QAbstractSlider
*
volumeSlider
;
QFrame
*
volumeControlWidget
;
QMenu
*
volumeMenu
;
virtual
bool
eventFilter
(
QObject
*
obj
,
QEvent
*
e
);
bool
b_is_muted
;
bool
b_ignore_valuechanged
;
...
...
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