Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
6a25ed7c
Commit
6a25ed7c
authored
Nov 07, 2009
by
Jakob Leben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: let PLModel and PLSelector use MainInputManager instead of PlaylistEventManager
parent
24a911ff
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
15 deletions
+6
-15
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+4
-5
modules/gui/qt4/components/playlist/playlist_model.hpp
modules/gui/qt4/components/playlist/playlist_model.hpp
+0
-2
modules/gui/qt4/components/playlist/selector.cpp
modules/gui/qt4/components/playlist/selector.cpp
+2
-6
modules/gui/qt4/components/playlist/selector.hpp
modules/gui/qt4/components/playlist/selector.hpp
+0
-2
No files found.
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
6a25ed7c
...
@@ -32,7 +32,6 @@
...
@@ -32,7 +32,6 @@
#include "components/playlist/playlist_model.hpp"
#include "components/playlist/playlist_model.hpp"
#include "dialogs/mediainfo.hpp"
#include "dialogs/mediainfo.hpp"
#include "dialogs/playlist.hpp"
#include "dialogs/playlist.hpp"
#include "playlist.hpp"
#include <vlc_intf_strings.h>
#include <vlc_intf_strings.h>
#include "pixmaps/types/type_unknown.xpm"
#include "pixmaps/types/type_unknown.xpm"
...
@@ -65,7 +64,6 @@ PLModel::PLModel( playlist_t *_p_playlist, /* THEPL */
...
@@ -65,7 +64,6 @@ PLModel::PLModel( playlist_t *_p_playlist, /* THEPL */
{
{
p_intf
=
_p_intf
;
p_intf
=
_p_intf
;
p_playlist
=
_p_playlist
;
p_playlist
=
_p_playlist
;
plEM
=
new
PlaylistEventManager
(
_p_playlist
);
i_cached_id
=
-
1
;
i_cached_id
=
-
1
;
i_cached_input_id
=
-
1
;
i_cached_input_id
=
-
1
;
i_popup_item
=
i_popup_parent
=
-
1
;
i_popup_item
=
i_popup_parent
=
-
1
;
...
@@ -91,14 +89,15 @@ PLModel::PLModel( playlist_t *_p_playlist, /* THEPL */
...
@@ -91,14 +89,15 @@ PLModel::PLModel( playlist_t *_p_playlist, /* THEPL */
this
,
processInputItemUpdate
(
input_item_t
*
)
);
this
,
processInputItemUpdate
(
input_item_t
*
)
);
CONNECT
(
THEMIM
,
inputChanged
(
input_thread_t
*
),
CONNECT
(
THEMIM
,
inputChanged
(
input_thread_t
*
),
this
,
processInputItemUpdate
(
input_thread_t
*
)
);
this
,
processInputItemUpdate
(
input_thread_t
*
)
);
CONNECT
(
plEM
,
itemAdded
(
int
,
int
),
this
,
processItemAppend
(
int
,
int
)
);
CONNECT
(
THEMIM
,
playlistItemAppended
(
int
,
int
),
CONNECT
(
plEM
,
itemRemoved
(
int
),
this
,
processItemRemoval
(
int
)
);
this
,
processItemAppend
(
int
,
int
)
);
CONNECT
(
THEMIM
,
playlistItemRemoved
(
int
),
this
,
processItemRemoval
(
int
)
);
}
}
PLModel
::~
PLModel
()
PLModel
::~
PLModel
()
{
{
delete
rootItem
;
delete
rootItem
;
delete
plEM
;
}
}
Qt
::
DropActions
PLModel
::
supportedDropActions
()
const
Qt
::
DropActions
PLModel
::
supportedDropActions
()
const
...
...
modules/gui/qt4/components/playlist/playlist_model.hpp
View file @
6a25ed7c
...
@@ -44,7 +44,6 @@
...
@@ -44,7 +44,6 @@
#include <QAbstractItemModel>
#include <QAbstractItemModel>
#include <QVariant>
#include <QVariant>
class
PlaylistEventManager
;
class
QSignalMapper
;
class
QSignalMapper
;
class
PLItem
;
class
PLItem
;
...
@@ -100,7 +99,6 @@ public:
...
@@ -100,7 +99,6 @@ public:
private:
private:
/* General */
/* General */
PlaylistEventManager
*
plEM
;
PLItem
*
rootItem
;
PLItem
*
rootItem
;
PLItem
*
currentItem
;
PLItem
*
currentItem
;
...
...
modules/gui/qt4/components/playlist/selector.cpp
View file @
6a25ed7c
...
@@ -108,11 +108,9 @@ PLSelector::PLSelector( QWidget *p, intf_thread_t *_p_intf )
...
@@ -108,11 +108,9 @@ PLSelector::PLSelector( QWidget *p, intf_thread_t *_p_intf )
setDropIndicatorShown
(
true
);
setDropIndicatorShown
(
true
);
invisibleRootItem
()
->
setFlags
(
invisibleRootItem
()
->
flags
()
&
~
Qt
::
ItemIsDropEnabled
);
invisibleRootItem
()
->
setFlags
(
invisibleRootItem
()
->
flags
()
&
~
Qt
::
ItemIsDropEnabled
);
plEM
=
new
PlaylistEventManager
(
THEPL
);
CONNECT
(
THEMIM
,
playlistItemAppended
(
int
,
int
),
CONNECT
(
plEM
,
itemAdded
(
int
,
int
),
this
,
plItemAdded
(
int
,
int
)
);
this
,
plItemAdded
(
int
,
int
)
);
CONNECT
(
plEM
,
i
temRemoved
(
int
),
CONNECT
(
THEMIM
,
playlistI
temRemoved
(
int
),
this
,
plItemRemoved
(
int
)
);
this
,
plItemRemoved
(
int
)
);
CONNECT
(
THEMIM
->
getIM
(),
metaChanged
(
input_item_t
*
),
CONNECT
(
THEMIM
->
getIM
(),
metaChanged
(
input_item_t
*
),
this
,
inputItemUpdate
(
input_item_t
*
)
);
this
,
inputItemUpdate
(
input_item_t
*
)
);
...
@@ -131,8 +129,6 @@ PLSelector::PLSelector( QWidget *p, intf_thread_t *_p_intf )
...
@@ -131,8 +129,6 @@ PLSelector::PLSelector( QWidget *p, intf_thread_t *_p_intf )
PLSelector
::~
PLSelector
()
PLSelector
::~
PLSelector
()
{
{
delete
plEM
;
if
(
podcastsParent
)
if
(
podcastsParent
)
{
{
int
c
=
podcastsParent
->
childCount
();
int
c
=
podcastsParent
->
childCount
();
...
...
modules/gui/qt4/components/playlist/selector.hpp
View file @
6a25ed7c
...
@@ -42,7 +42,6 @@
...
@@ -42,7 +42,6 @@
#include "qt4.hpp"
#include "qt4.hpp"
class
PlaylistWidget
;
class
PlaylistWidget
;
class
PlaylistEventManager
;
enum
SelectorItemType
{
enum
SelectorItemType
{
CATEGORY_TYPE
,
CATEGORY_TYPE
,
...
@@ -136,7 +135,6 @@ private:
...
@@ -136,7 +135,6 @@ private:
PLSelItem
*
addPodcastItem
(
playlist_item_t
*
p_item
);
PLSelItem
*
addPodcastItem
(
playlist_item_t
*
p_item
);
inline
PLSelItem
*
itemWidget
(
QTreeWidgetItem
*
);
inline
PLSelItem
*
itemWidget
(
QTreeWidgetItem
*
);
intf_thread_t
*
p_intf
;
intf_thread_t
*
p_intf
;
PlaylistEventManager
*
plEM
;
QTreeWidgetItem
*
podcastsParent
;
QTreeWidgetItem
*
podcastsParent
;
int
podcastsParentId
;
int
podcastsParentId
;
private
slots
:
private
slots
:
...
...
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