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
7d14a7c7
Commit
7d14a7c7
authored
May 18, 2014
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: cosmetics on RecentsMRL and Open classes
parent
72afb883
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
modules/gui/qt4/recents.cpp
modules/gui/qt4/recents.cpp
+5
-2
modules/gui/qt4/recents.hpp
modules/gui/qt4/recents.hpp
+10
-10
No files found.
modules/gui/qt4/recents.cpp
View file @
7d14a7c7
...
...
@@ -172,16 +172,17 @@ int Open::openMRL( intf_thread_t *p_intf,
bool
b_start
,
bool
b_playlist
)
{
return
openMRLwithOptions
(
p_intf
,
mrl
,
NULL
,
b_start
,
b_playlist
,
NULL
);
return
openMRLwithOptions
(
p_intf
,
mrl
,
NULL
,
b_start
,
b_playlist
);
}
int
Open
::
openMRLwithOptions
(
intf_thread_t
*
p_intf
,
const
QString
&
mrl
,
const
QStringList
*
options
,
QStringList
*
options
,
bool
b_start
,
bool
b_playlist
,
const
char
*
title
)
{
/* Options */
const
char
**
ppsz_options
=
NULL
;
int
i_options
=
0
;
...
...
@@ -199,6 +200,7 @@ int Open::openMRLwithOptions( intf_thread_t* p_intf,
}
}
/* Add to playlist */
int
i_ret
=
playlist_AddExt
(
THEPL
,
qtu
(
mrl
),
title
,
PLAYLIST_APPEND
|
(
b_start
?
PLAYLIST_GO
:
PLAYLIST_PREPARSE
),
...
...
@@ -208,6 +210,7 @@ int Open::openMRLwithOptions( intf_thread_t* p_intf,
b_playlist
,
pl_Unlocked
);
/* Add to recent items, only if played */
if
(
i_ret
==
VLC_SUCCESS
&&
b_start
&&
b_playlist
)
RecentsMRL
::
getInstance
(
p_intf
)
->
addRecent
(
mrl
);
...
...
modules/gui/qt4/recents.hpp
View file @
7d14a7c7
...
...
@@ -38,17 +38,17 @@ class QSignalMapper;
class
Open
{
public:
int
static
openMRL
(
intf_thread_t
*
,
const
QString
&
,
bool
b_start
=
true
,
bool
b_playlist
=
true
);
static
int
openMRL
(
intf_thread_t
*
,
const
QString
&
,
bool
b_start
=
true
,
bool
b_playlist
=
true
);
int
static
openMRLwithOptions
(
intf_thread_t
*
,
const
QString
&
,
const
QStringList
*
options
,
bool
b_start
=
true
,
bool
b_playlist
=
true
,
const
char
*
title
=
NULL
);
static
int
openMRLwithOptions
(
intf_thread_t
*
,
const
QString
&
,
QStringList
*
options
,
bool
b_start
=
true
,
bool
b_playlist
=
true
,
const
char
*
title
=
NULL
);
};
class
RecentsMRL
:
public
QObject
,
public
Singleton
<
RecentsMRL
>
...
...
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