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
f6d61f8b
Commit
f6d61f8b
authored
Aug 17, 2012
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: PLEvent: protect members
parent
b2f19b19
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+4
-4
modules/gui/qt4/input_manager.hpp
modules/gui/qt4/input_manager.hpp
+3
-1
No files found.
modules/gui/qt4/input_manager.cpp
View file @
f6d61f8b
...
...
@@ -1029,19 +1029,19 @@ void MainInputManager::customEvent( QEvent *event )
{
case
PLEvent
:
:
PLItemAppended_Type
:
plEv
=
static_cast
<
PLEvent
*>
(
event
);
emit
playlistItemAppended
(
plEv
->
i_item
,
plEv
->
i_parent
);
emit
playlistItemAppended
(
plEv
->
getItemId
(),
plEv
->
getParentId
()
);
return
;
case
PLEvent
:
:
PLItemRemoved_Type
:
plEv
=
static_cast
<
PLEvent
*>
(
event
);
emit
playlistItemRemoved
(
plEv
->
i_item
);
emit
playlistItemRemoved
(
plEv
->
getItemId
()
);
return
;
case
PLEvent
:
:
PLEmpty_Type
:
plEv
=
static_cast
<
PLEvent
*>
(
event
);
emit
playlistNotEmpty
(
plEv
->
i_item
>=
0
);
emit
playlistNotEmpty
(
plEv
->
getItemId
()
>=
0
);
return
;
case
PLEvent
:
:
LeafToParent_Type
:
plEv
=
static_cast
<
PLEvent
*>
(
event
);
emit
leafBecameParent
(
plEv
->
i_item
);
emit
leafBecameParent
(
plEv
->
getItemId
()
);
return
;
default:
if
(
type
!=
ItemChanged_Type
)
return
;
...
...
modules/gui/qt4/input_manager.hpp
View file @
f6d61f8b
...
...
@@ -110,7 +110,9 @@ public:
};
PLEvent
(
PLEventTypes
t
,
int
i
,
int
p
=
0
)
:
QEvent
(
(
QEvent
::
Type
)(
t
)
),
i_item
(
i
),
i_parent
(
p
)
{}
int
getItemId
()
const
{
return
i_item
;
};
int
getParentId
()
const
{
return
i_parent
;
};
private:
/* Needed for "playlist-item*" and "leaf-to-parent" callbacks
* !! Can be a input_item_t->i_id or a playlist_item_t->i_id */
int
i_item
;
...
...
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