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
e957d5d4
Commit
e957d5d4
authored
Jul 02, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: plugins dialog as a toggle one.
Close #2900
parent
3617f5b4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
4 deletions
+17
-4
modules/gui/qt4/dialogs/plugins.cpp
modules/gui/qt4/dialogs/plugins.cpp
+2
-0
modules/gui/qt4/dialogs/plugins.hpp
modules/gui/qt4/dialogs/plugins.hpp
+14
-2
modules/gui/qt4/dialogs_provider.cpp
modules/gui/qt4/dialogs_provider.cpp
+1
-2
No files found.
modules/gui/qt4/dialogs/plugins.cpp
View file @
e957d5d4
...
...
@@ -38,6 +38,8 @@
#include <QLineEdit>
#include <QLabel>
PluginDialog
*
PluginDialog
::
instance
=
NULL
;
PluginDialog
::
PluginDialog
(
intf_thread_t
*
_p_intf
)
:
QVLCFrame
(
_p_intf
)
{
setAttribute
(
Qt
::
WA_DeleteOnClose
);
...
...
modules/gui/qt4/dialogs/plugins.hpp
View file @
e957d5d4
...
...
@@ -34,11 +34,23 @@ class PluginDialog : public QVLCFrame
{
Q_OBJECT
;
public:
PluginDialog
(
intf_thread_t
*
);
static
PluginDialog
*
getInstance
(
intf_thread_t
*
p_intf
)
{
if
(
!
instance
)
instance
=
new
PluginDialog
(
p_intf
);
return
instance
;
}
static
void
killInstance
()
{
delete
instance
;
instance
=
NULL
;
}
private:
void
FillTree
(
);
PluginDialog
(
intf_thread_t
*
);
virtual
~
PluginDialog
();
static
PluginDialog
*
instance
;
void
FillTree
();
QTreeWidget
*
treePlugins
;
SearchLineEdit
*
edit
;
private
slots
:
...
...
modules/gui/qt4/dialogs_provider.cpp
View file @
e957d5d4
...
...
@@ -259,8 +259,7 @@ void DialogsProvider::toolbarDialog()
void
DialogsProvider
::
pluginDialog
()
{
PluginDialog
*
diag
=
new
PluginDialog
(
p_intf
);
diag
->
show
();
PluginDialog
::
getInstance
(
p_intf
)
->
toggleVisible
();
}
/* Generic open file */
...
...
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