Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
3439c052
Commit
3439c052
authored
Feb 07, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: remove code duplication.
parent
11a75f69
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
modules/gui/qt4/components/controller_widget.cpp
modules/gui/qt4/components/controller_widget.cpp
+3
-6
No files found.
modules/gui/qt4/components/controller_widget.cpp
View file @
3439c052
...
...
@@ -55,20 +55,18 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf,
/* We might need a subLayout too */
QVBoxLayout
*
subLayout
;
volMuteLabel
->
installEventFilter
(
this
);
/* Normal View, click on icon mutes */
if
(
!
b_special
)
{
volMuteLabel
->
installEventFilter
(
this
);
volumeMenu
=
NULL
;
subLayout
=
NULL
;
volumeMenu
=
NULL
;
subLayout
=
NULL
;
}
else
{
/* Special view, click on button shows the slider */
b_shiny
=
false
;
volMuteLabel
->
installEventFilter
(
this
);
QFrame
*
volumeControlWidget
=
new
QFrame
;
subLayout
=
new
QVBoxLayout
(
volumeControlWidget
);
subLayout
->
setLayoutMargins
(
4
,
4
,
4
,
4
,
4
);
...
...
@@ -77,7 +75,6 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf,
QWidgetAction
*
widgetAction
=
new
QWidgetAction
(
volumeControlWidget
);
widgetAction
->
setDefaultWidget
(
volumeControlWidget
);
volumeMenu
->
addAction
(
widgetAction
);
}
/* And add the label */
...
...
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