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
f9bab4b4
Commit
f9bab4b4
authored
May 18, 2014
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: use provided Singleton util for RecentsMRL
parent
dff2e609
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
17 deletions
+3
-17
modules/gui/qt4/recents.cpp
modules/gui/qt4/recents.cpp
+0
-2
modules/gui/qt4/recents.hpp
modules/gui/qt4/recents.hpp
+3
-15
No files found.
modules/gui/qt4/recents.cpp
View file @
f9bab4b4
...
...
@@ -50,8 +50,6 @@
#endif
RecentsMRL
*
RecentsMRL
::
instance
=
NULL
;
RecentsMRL
::
RecentsMRL
(
intf_thread_t
*
_p_intf
)
:
p_intf
(
_p_intf
)
{
stack
=
new
QStringList
;
...
...
modules/gui/qt4/recents.hpp
View file @
f9bab4b4
...
...
@@ -25,6 +25,7 @@
#define QVLC_RECENTS_H_
#include "qt4.hpp"
#include "util/singleton.hpp"
#include <QObject>
class
QStringList
;
...
...
@@ -33,23 +34,12 @@ class QSignalMapper;
#define RECENTS_LIST_SIZE 10
class
RecentsMRL
:
public
QObject
class
RecentsMRL
:
public
QObject
,
public
Singleton
<
RecentsMRL
>
{
Q_OBJECT
friend
class
Singleton
<
RecentsMRL
>
;
public:
static
RecentsMRL
*
getInstance
(
intf_thread_t
*
p_intf
)
{
if
(
!
instance
)
instance
=
new
RecentsMRL
(
p_intf
);
return
instance
;
}
static
void
killInstance
()
{
delete
instance
;
instance
=
NULL
;
}
void
addRecent
(
const
QString
&
);
QStringList
recents
();
playlist_item_t
*
toPlaylist
(
int
length
);
...
...
@@ -59,8 +49,6 @@ private:
RecentsMRL
(
intf_thread_t
*
_p_intf
);
virtual
~
RecentsMRL
();
static
RecentsMRL
*
instance
;
intf_thread_t
*
p_intf
;
QStringList
*
stack
;
QRegExp
*
filter
;
...
...
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