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
11279e38
Commit
11279e38
authored
Aug 17, 2012
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: use dynamic ID for DialogEvent
parent
6f435e88
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
modules/gui/qt4/dialogs_provider.cpp
modules/gui/qt4/dialogs_provider.cpp
+4
-1
modules/gui/qt4/dialogs_provider.hpp
modules/gui/qt4/dialogs_provider.hpp
+2
-8
No files found.
modules/gui/qt4/dialogs_provider.cpp
View file @
11279e38
...
...
@@ -117,7 +117,7 @@ void DialogsProvider::quit()
void
DialogsProvider
::
customEvent
(
QEvent
*
event
)
{
if
(
event
->
type
()
==
(
int
)
DialogEvent_Type
)
if
(
event
->
type
()
==
DialogEvent
::
DialogEvent_Type
)
{
DialogEvent
*
de
=
static_cast
<
DialogEvent
*>
(
event
);
switch
(
de
->
i_dialog
)
...
...
@@ -178,6 +178,9 @@ void DialogsProvider::customEvent( QEvent *event )
/****************************************************************************
* Individual simple dialogs
****************************************************************************/
const
QEvent
::
Type
DialogEvent
::
DialogEvent_Type
=
(
QEvent
::
Type
)
QEvent
::
registerEventType
();
void
DialogsProvider
::
playlistDialog
()
{
PlaylistDialog
::
getInstance
(
p_intf
)
->
toggleVisible
();
...
...
modules/gui/qt4/dialogs_provider.hpp
View file @
11279e38
...
...
@@ -57,13 +57,6 @@ enum {
EXT_FILTER_SUBTITLE
=
0x10
,
};
enum
{
DialogEvent_Type
=
QEvent
::
User
+
DialogEventTypeOffset
+
1
,
//PLUndockEvent_Type = QEvent::User + DialogEventType + 2;
//PLDockEvent_Type = QEvent::User + DialogEventType + 3;
SetVideoOnTopEvent_Type
=
QEvent
::
User
+
DialogEventTypeOffset
+
4
,
};
class
QEvent
;
class
QSignalMapper
;
class
VLCMenuBar
;
...
...
@@ -186,8 +179,9 @@ signals:
class
DialogEvent
:
public
QEvent
{
public:
static
const
QEvent
::
Type
DialogEvent_Type
;
DialogEvent
(
int
_i_dialog
,
int
_i_arg
,
intf_dialog_args_t
*
_p_arg
)
:
QEvent
(
(
QEvent
::
Type
)(
DialogEvent_Type
)
)
QEvent
(
DialogEvent_Type
)
{
i_dialog
=
_i_dialog
;
i_arg
=
_i_arg
;
...
...
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