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
d65ad9ba
Commit
d65ad9ba
authored
Jun 15, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: kill memleak on the special sound slider
parent
380d2c8c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
modules/gui/qt4/components/controller_widget.cpp
modules/gui/qt4/components/controller_widget.cpp
+8
-1
modules/gui/qt4/components/controller_widget.hpp
modules/gui/qt4/components/controller_widget.hpp
+2
-0
No files found.
modules/gui/qt4/components/controller_widget.cpp
View file @
d65ad9ba
...
...
@@ -62,13 +62,14 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf,
if
(
!
b_special
)
{
volumeMenu
=
NULL
;
subLayout
=
NULL
;
volumeControlWidget
=
NULL
;
}
else
{
/* Special view, click on button shows the slider */
b_shiny
=
false
;
QFrame
*
volumeControlWidget
=
new
QFrame
;
volumeControlWidget
=
new
QFrame
;
subLayout
=
new
QVBoxLayout
(
volumeControlWidget
);
subLayout
->
setLayoutMargins
(
4
,
4
,
4
,
4
,
4
);
volumeMenu
=
new
QMenu
(
this
);
...
...
@@ -121,6 +122,12 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf,
CONNECT
(
THEMIM
,
volumeChanged
(
void
),
this
,
updateVolume
(
void
)
);
}
SoundWidget
::~
SoundWidget
()
{
delete
volumeSlider
;
delete
volumeControlWidget
;
}
void
SoundWidget
::
updateVolume
(
int
i_sliderVolume
)
{
if
(
!
b_my_volume
)
...
...
modules/gui/qt4/components/controller_widget.hpp
View file @
d65ad9ba
...
...
@@ -68,11 +68,13 @@ class SoundWidget : public QWidget
public:
SoundWidget
(
QWidget
*
parent
,
intf_thread_t
*
_p_i
,
bool
,
bool
b_special
=
false
);
virtual
~
SoundWidget
();
private:
intf_thread_t
*
p_intf
;
QLabel
*
volMuteLabel
;
QAbstractSlider
*
volumeSlider
;
QFrame
*
volumeControlWidget
;
bool
b_my_volume
;
QMenu
*
volumeMenu
;
virtual
bool
eventFilter
(
QObject
*
obj
,
QEvent
*
e
);
...
...
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