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
b91b84d6
Commit
b91b84d6
authored
Jan 25, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4: no need for a static_cast to the parent class.
parent
513870cc
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
17 deletions
+17
-17
modules/gui/qt4/components/controller.cpp
modules/gui/qt4/components/controller.cpp
+3
-3
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+6
-6
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+5
-5
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+2
-2
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.cpp
+1
-1
No files found.
modules/gui/qt4/components/controller.cpp
View file @
b91b84d6
...
...
@@ -1035,7 +1035,7 @@ void FullscreenControllerWidget::fullscreenChanged( vout_thread_t *p_vout,
/* Force fs hidding */
IMEvent
*
eHide
=
new
IMEvent
(
FullscreenControlHide_Type
,
0
);
QApplication
::
postEvent
(
this
,
static_cast
<
QEvent
*>
(
eHide
)
);
QApplication
::
postEvent
(
this
,
eHide
);
}
vlc_mutex_unlock
(
&
lock
);
}
...
...
@@ -1062,11 +1062,11 @@ void FullscreenControllerWidget::mouseChanged( vout_thread_t *p_vout, int i_mous
{
/* Show event */
IMEvent
*
eShow
=
new
IMEvent
(
FullscreenControlShow_Type
,
0
);
QApplication
::
postEvent
(
this
,
static_cast
<
QEvent
*>
(
eShow
)
);
QApplication
::
postEvent
(
this
,
eShow
);
/* Plan hide event */
IMEvent
*
eHide
=
new
IMEvent
(
FullscreenControlPlanHide_Type
,
0
);
QApplication
::
postEvent
(
this
,
static_cast
<
QEvent
*>
(
eHide
)
);
QApplication
::
postEvent
(
this
,
eHide
);
}
}
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
b91b84d6
...
...
@@ -943,7 +943,7 @@ static int PlaylistChanged( vlc_object_t *p_this, const char *psz_variable,
{
PLModel
*
p_model
=
(
PLModel
*
)
param
;
PLEvent
*
event
=
new
PLEvent
(
PLUpdate_Type
,
0
);
QApplication
::
postEvent
(
p_model
,
static_cast
<
QEvent
*>
(
event
)
);
QApplication
::
postEvent
(
p_model
,
event
);
return
VLC_SUCCESS
;
}
...
...
@@ -952,9 +952,9 @@ static int PlaylistNext( vlc_object_t *p_this, const char *psz_variable,
{
PLModel
*
p_model
=
(
PLModel
*
)
param
;
PLEvent
*
event
=
new
PLEvent
(
ItemUpdate_Type
,
oval
.
i_int
);
QApplication
::
postEvent
(
p_model
,
static_cast
<
QEvent
*>
(
event
)
);
QApplication
::
postEvent
(
p_model
,
event
);
event
=
new
PLEvent
(
ItemUpdate_Type
,
nval
.
i_int
);
QApplication
::
postEvent
(
p_model
,
static_cast
<
QEvent
*>
(
event
)
);
QApplication
::
postEvent
(
p_model
,
event
);
return
VLC_SUCCESS
;
}
...
...
@@ -963,7 +963,7 @@ static int ItemChanged( vlc_object_t *p_this, const char *psz_variable,
{
PLModel
*
p_model
=
(
PLModel
*
)
param
;
PLEvent
*
event
=
new
PLEvent
(
ItemUpdate_Type
,
nval
.
i_int
);
QApplication
::
postEvent
(
p_model
,
static_cast
<
QEvent
*>
(
event
)
);
QApplication
::
postEvent
(
p_model
,
event
);
return
VLC_SUCCESS
;
}
...
...
@@ -972,7 +972,7 @@ static int ItemDeleted( vlc_object_t *p_this, const char *psz_variable,
{
PLModel
*
p_model
=
(
PLModel
*
)
param
;
PLEvent
*
event
=
new
PLEvent
(
ItemDelete_Type
,
nval
.
i_int
);
QApplication
::
postEvent
(
p_model
,
static_cast
<
QEvent
*>
(
event
)
);
QApplication
::
postEvent
(
p_model
,
event
);
return
VLC_SUCCESS
;
}
...
...
@@ -984,7 +984,7 @@ static int ItemAppended( vlc_object_t *p_this, const char *psz_variable,
memcpy
(
p_add
,
nval
.
p_address
,
sizeof
(
playlist_add_t
)
);
PLEvent
*
event
=
new
PLEvent
(
p_add
);
QApplication
::
postEvent
(
p_model
,
static_cast
<
QEvent
*>
(
event
)
);
QApplication
::
postEvent
(
p_model
,
event
);
return
VLC_SUCCESS
;
}
modules/gui/qt4/input_manager.cpp
View file @
b91b84d6
...
...
@@ -277,7 +277,7 @@ static int ItemChanged( vlc_object_t *p_this, const char *psz_var,
InputManager
*
im
=
(
InputManager
*
)
param
;
IMEvent
*
event
=
new
IMEvent
(
ItemChanged_Type
,
newval
.
i_int
);
QApplication
::
postEvent
(
im
,
static_cast
<
QEvent
*>
(
event
)
);
QApplication
::
postEvent
(
im
,
event
);
return
VLC_SUCCESS
;
}
...
...
@@ -363,7 +363,7 @@ static int InputEvent( vlc_object_t *p_this, const char *,
}
if
(
event
)
QApplication
::
postEvent
(
im
,
static_cast
<
QEvent
*>
(
event
)
);
QApplication
::
postEvent
(
im
,
event
);
return
VLC_SUCCESS
;
}
void
InputManager
::
UpdatePosition
()
...
...
@@ -841,7 +841,7 @@ MainInputManager::MainInputManager( intf_thread_t *_p_intf )
var_Change
(
THEPL
,
"playlist-current"
,
VLC_VAR_CHOICESCOUNT
,
&
val
,
NULL
);
IMEvent
*
event
=
new
IMEvent
(
ItemChanged_Type
,
val
.
i_int
);
customEvent
(
static_cast
<
QEvent
*>
(
event
)
);
customEvent
(
event
);
delete
event
;
}
...
...
@@ -956,7 +956,7 @@ static int PLItemChanged( vlc_object_t *p_this, const char *psz_var,
MainInputManager
*
mim
=
(
MainInputManager
*
)
param
;
IMEvent
*
event
=
new
IMEvent
(
ItemChanged_Type
,
newval
.
i_int
);
QApplication
::
postEvent
(
mim
,
static_cast
<
QEvent
*>
(
event
)
);
QApplication
::
postEvent
(
mim
,
event
);
return
VLC_SUCCESS
;
}
...
...
@@ -966,7 +966,7 @@ static int VolumeChanged( vlc_object_t *p_this, const char *psz_var,
MainInputManager
*
mim
=
(
MainInputManager
*
)
param
;
IMEvent
*
event
=
new
IMEvent
(
VolumeChanged_Type
,
newval
.
i_int
);
QApplication
::
postEvent
(
mim
,
static_cast
<
QEvent
*>
(
event
)
);
QApplication
::
postEvent
(
mim
,
event
);
return
VLC_SUCCESS
;
}
modules/gui/qt4/main_interface.cpp
View file @
b91b84d6
...
...
@@ -597,7 +597,7 @@ void MainInterface::toggleFSC()
if
(
!
fullscreenControls
)
return
;
IMEvent
*
eShow
=
new
IMEvent
(
FullscreenControlToggle_Type
,
0
);
QApplication
::
postEvent
(
fullscreenControls
,
static_cast
<
QEvent
*>
(
eShow
)
);
QApplication
::
postEvent
(
fullscreenControls
,
eShow
);
}
void
MainInterface
::
debug
()
...
...
@@ -1174,7 +1174,7 @@ static int InteractCallback( vlc_object_t *p_this,
intf_dialog_args_t
*
p_arg
=
new
intf_dialog_args_t
;
p_arg
->
p_dialog
=
(
interaction_dialog_t
*
)(
new_val
.
p_address
);
DialogEvent
*
event
=
new
DialogEvent
(
INTF_DIALOG_INTERACTION
,
0
,
p_arg
);
QApplication
::
postEvent
(
THEDP
,
static_cast
<
QEvent
*>
(
event
)
);
QApplication
::
postEvent
(
THEDP
,
event
);
return
VLC_SUCCESS
;
}
...
...
modules/gui/qt4/qt4.cpp
View file @
b91b84d6
...
...
@@ -485,7 +485,7 @@ static void ShowDialog( intf_thread_t *p_intf, int i_dialog_event, int i_arg,
{
VLC_UNUSED
(
p_intf
);
DialogEvent
*
event
=
new
DialogEvent
(
i_dialog_event
,
i_arg
,
p_arg
);
QApplication
::
postEvent
(
THEDP
,
static_cast
<
QEvent
*>
(
event
)
);
QApplication
::
postEvent
(
THEDP
,
event
);
}
/**
...
...
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