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
60009ebc
Commit
60009ebc
authored
Dec 10, 2015
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4: addons tab: Fix leaks
parent
73908fcf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
modules/gui/qt4/dialogs/plugins.cpp
modules/gui/qt4/dialogs/plugins.cpp
+6
-5
modules/gui/qt4/dialogs/plugins.hpp
modules/gui/qt4/dialogs/plugins.hpp
+2
-0
No files found.
modules/gui/qt4/dialogs/plugins.cpp
View file @
60009ebc
...
@@ -351,7 +351,7 @@ AddonsTab::AddonsTab( intf_thread_t *p_intf_ ) : QVLCFrame( p_intf_ )
...
@@ -351,7 +351,7 @@ AddonsTab::AddonsTab( intf_thread_t *p_intf_ ) : QVLCFrame( p_intf_ )
leftPane
->
layout
()
->
addItem
(
new
QSpacerItem
(
0
,
10
)
);
leftPane
->
layout
()
->
addItem
(
new
QSpacerItem
(
0
,
10
)
);
QToolButton
*
button
;
QToolButton
*
button
;
QSignalMapper
*
m
apper
=
new
QSignalMapper
();
signalM
apper
=
new
QSignalMapper
();
QImage
icon
(
":/addons/default"
);
QImage
icon
(
":/addons/default"
);
QColor
vlcorange
(
0xEC
,
0x83
,
0x00
);
QColor
vlcorange
(
0xEC
,
0x83
,
0x00
);
#define ADD_CATEGORY( label, ltooltip, numb ) \
#define ADD_CATEGORY( label, ltooltip, numb ) \
...
@@ -368,8 +368,8 @@ AddonsTab::AddonsTab( intf_thread_t *p_intf_ ) : QVLCFrame( p_intf_ )
...
@@ -368,8 +368,8 @@ AddonsTab::AddonsTab( intf_thread_t *p_intf_ ) : QVLCFrame( p_intf_ )
button->setCheckable( true );\
button->setCheckable( true );\
if ( numb == -1 ) button->setChecked( true );\
if ( numb == -1 ) button->setChecked( true );\
button->setAutoExclusive( true );\
button->setAutoExclusive( true );\
CONNECT( button, clicked(),
m
apper, map() );\
CONNECT( button, clicked(),
signalM
apper, map() );\
m
apper->setMapping( button, numb );\
signalM
apper->setMapping( button, numb );\
leftPane->layout()->addWidget( button );
leftPane->layout()->addWidget( button );
ADD_CATEGORY
(
qtr
(
"All"
),
qtr
(
"Interface Settings"
),
ADD_CATEGORY
(
qtr
(
"All"
),
qtr
(
"Interface Settings"
),
...
@@ -454,7 +454,7 @@ AddonsTab::AddonsTab( intf_thread_t *p_intf_ ) : QVLCFrame( p_intf_ )
...
@@ -454,7 +454,7 @@ AddonsTab::AddonsTab( intf_thread_t *p_intf_ ) : QVLCFrame( p_intf_ )
// Model
// Model
AddonsListModel
*
model
=
new
AddonsListModel
(
AM
,
addonsView
);
AddonsListModel
*
model
=
new
AddonsListModel
(
AM
,
addonsView
);
addonsModel
=
new
AddonsSortFilterProxyModel
();
addonsModel
=
new
AddonsSortFilterProxyModel
(
addonsView
);
addonsModel
->
setDynamicSortFilter
(
true
);
addonsModel
->
setDynamicSortFilter
(
true
);
addonsModel
->
setFilterCaseSensitivity
(
Qt
::
CaseInsensitive
);
addonsModel
->
setFilterCaseSensitivity
(
Qt
::
CaseInsensitive
);
addonsModel
->
setSortRole
(
Qt
::
DisplayRole
);
addonsModel
->
setSortRole
(
Qt
::
DisplayRole
);
...
@@ -463,7 +463,7 @@ AddonsTab::AddonsTab( intf_thread_t *p_intf_ ) : QVLCFrame( p_intf_ )
...
@@ -463,7 +463,7 @@ AddonsTab::AddonsTab( intf_thread_t *p_intf_ ) : QVLCFrame( p_intf_ )
addonsModel
->
setFilterRole
(
Qt
::
DisplayRole
);
addonsModel
->
setFilterRole
(
Qt
::
DisplayRole
);
addonsView
->
setModel
(
addonsModel
);
addonsView
->
setModel
(
addonsModel
);
CONNECT
(
m
apper
,
mapped
(
int
),
addonsModel
,
setTypeFilter
(
int
)
);
CONNECT
(
signalM
apper
,
mapped
(
int
),
addonsModel
,
setTypeFilter
(
int
)
);
CONNECT
(
searchInput
,
textChanged
(
const
QString
&
),
CONNECT
(
searchInput
,
textChanged
(
const
QString
&
),
addonsModel
,
setFilterFixedString
(
QString
)
);
addonsModel
,
setFilterFixedString
(
QString
)
);
...
@@ -490,6 +490,7 @@ AddonsTab::AddonsTab( intf_thread_t *p_intf_ ) : QVLCFrame( p_intf_ )
...
@@ -490,6 +490,7 @@ AddonsTab::AddonsTab( intf_thread_t *p_intf_ ) : QVLCFrame( p_intf_ )
AddonsTab
::~
AddonsTab
()
AddonsTab
::~
AddonsTab
()
{
{
delete
spinnerAnimation
;
delete
spinnerAnimation
;
delete
signalMapper
;
}
}
// Do not close on ESC or ENTER
// Do not close on ESC or ENTER
...
...
modules/gui/qt4/dialogs/plugins.hpp
View file @
60009ebc
...
@@ -42,6 +42,7 @@ class QTabWidget;
...
@@ -42,6 +42,7 @@ class QTabWidget;
class
QComboBox
;
class
QComboBox
;
class
QTreeWidget
;
class
QTreeWidget
;
class
QLineEdit
;
class
QLineEdit
;
class
QSignalMapper
;
//class QTextBrowser;
//class QTextBrowser;
class
QListView
;
class
QListView
;
class
QStyleOptionViewItem
;
class
QStyleOptionViewItem
;
...
@@ -153,6 +154,7 @@ private:
...
@@ -153,6 +154,7 @@ private:
/* Wait spinner */
/* Wait spinner */
PixmapAnimator
*
spinnerAnimation
;
PixmapAnimator
*
spinnerAnimation
;
bool
b_localdone
;
bool
b_localdone
;
QSignalMapper
*
signalMapper
;
};
};
class
PluginTreeItem
:
public
QTreeWidgetItem
class
PluginTreeItem
:
public
QTreeWidgetItem
...
...
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