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
d276f755
Commit
d276f755
authored
May 18, 2014
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: provide an helper to open items
parent
e3fa3a21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
modules/gui/qt4/recents.cpp
modules/gui/qt4/recents.cpp
+20
-0
modules/gui/qt4/recents.hpp
modules/gui/qt4/recents.hpp
+6
-0
No files found.
modules/gui/qt4/recents.cpp
View file @
d276f755
...
...
@@ -182,3 +182,23 @@ void Open::openMRL( intf_thread_t *p_intf,
if
(
b_start
&&
b_playlist
)
RecentsMRL
::
getInstance
(
p_intf
)
->
addRecent
(
mrl
);
}
int
Open
::
openInput
(
intf_thread_t
*
p_intf
,
input_item_t
*
p_item
,
const
QString
&
mrl
,
bool
b_start
,
bool
b_playlist
)
{
int
i_ret
=
playlist_AddInput
(
THEPL
,
p_item
,
PLAYLIST_APPEND
|
(
b_start
?
PLAYLIST_GO
:
PLAYLIST_PREPARSE
),
PLAYLIST_END
,
b_playlist
,
pl_Unlocked
);
if
(
i_ret
==
VLC_SUCCESS
&&
b_start
&&
b_playlist
)
RecentsMRL
::
getInstance
(
p_intf
)
->
addRecent
(
mrl
);
return
i_ret
;
}
modules/gui/qt4/recents.hpp
View file @
d276f755
...
...
@@ -42,6 +42,12 @@ public:
const
QString
&
,
bool
b_start
=
true
,
bool
b_playlist
=
true
);
int
static
openInput
(
intf_thread_t
*
,
input_item_t
*
,
const
QString
&
,
bool
b_start
=
true
,
bool
b_playlist
=
true
);
};
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