Commit d6742e01 authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: namespaces are now sufficient for designating event names

parent 087fcf43
...@@ -938,7 +938,7 @@ void FullscreenControllerWidget::customEvent( QEvent *event ) ...@@ -938,7 +938,7 @@ void FullscreenControllerWidget::customEvent( QEvent *event )
switch( (int)event->type() ) switch( (int)event->type() )
{ {
/* This is used when the 'i' hotkey is used, to force quick toggle */ /* This is used when the 'i' hotkey is used, to force quick toggle */
case IMEvent::FullscreenControlToggle_Type: case IMEvent::FullscreenControlToggle:
vlc_mutex_lock( &lock ); vlc_mutex_lock( &lock );
b_fs = b_fullscreen; b_fs = b_fullscreen;
vlc_mutex_unlock( &lock ); vlc_mutex_unlock( &lock );
...@@ -955,7 +955,7 @@ void FullscreenControllerWidget::customEvent( QEvent *event ) ...@@ -955,7 +955,7 @@ void FullscreenControllerWidget::customEvent( QEvent *event )
} }
break; break;
/* Event called to Show the FSC on mouseChanged() */ /* Event called to Show the FSC on mouseChanged() */
case IMEvent::FullscreenControlShow_Type: case IMEvent::FullscreenControlShow:
vlc_mutex_lock( &lock ); vlc_mutex_lock( &lock );
b_fs = b_fullscreen; b_fs = b_fullscreen;
vlc_mutex_unlock( &lock ); vlc_mutex_unlock( &lock );
...@@ -965,12 +965,12 @@ void FullscreenControllerWidget::customEvent( QEvent *event ) ...@@ -965,12 +965,12 @@ void FullscreenControllerWidget::customEvent( QEvent *event )
break; break;
/* Start the timer to hide later, called usually with above case */ /* Start the timer to hide later, called usually with above case */
case IMEvent::FullscreenControlPlanHide_Type: case IMEvent::FullscreenControlPlanHide:
if( !b_mouse_over ) // Only if the mouse is not over FSC if( !b_mouse_over ) // Only if the mouse is not over FSC
planHideFSC(); planHideFSC();
break; break;
/* Hide */ /* Hide */
case IMEvent::FullscreenControlHide_Type: case IMEvent::FullscreenControlHide:
hideFSC(); hideFSC();
break; break;
default: default:
...@@ -1174,7 +1174,7 @@ void FullscreenControllerWidget::fullscreenChanged( vout_thread_t *p_vout, ...@@ -1174,7 +1174,7 @@ void FullscreenControllerWidget::fullscreenChanged( vout_thread_t *p_vout,
FullscreenControllerWidgetMouseMoved, this ); FullscreenControllerWidgetMouseMoved, this );
/* Force fs hiding */ /* Force fs hiding */
IMEvent *eHide = new IMEvent( IMEvent::FullscreenControlHide_Type, 0 ); IMEvent *eHide = new IMEvent( IMEvent::FullscreenControlHide, 0 );
QApplication::postEvent( this, eHide ); QApplication::postEvent( this, eHide );
} }
vlc_mutex_unlock( &lock ); vlc_mutex_unlock( &lock );
...@@ -1202,11 +1202,11 @@ void FullscreenControllerWidget::mouseChanged( vout_thread_t *, int i_mousex, in ...@@ -1202,11 +1202,11 @@ void FullscreenControllerWidget::mouseChanged( vout_thread_t *, int i_mousex, in
if( b_toShow ) if( b_toShow )
{ {
/* Show event */ /* Show event */
IMEvent *eShow = new IMEvent( IMEvent::FullscreenControlShow_Type, 0 ); IMEvent *eShow = new IMEvent( IMEvent::FullscreenControlShow, 0 );
QApplication::postEvent( this, eShow ); QApplication::postEvent( this, eShow );
/* Plan hide event */ /* Plan hide event */
IMEvent *eHide = new IMEvent( IMEvent::FullscreenControlPlanHide_Type, 0 ); IMEvent *eHide = new IMEvent( IMEvent::FullscreenControlPlanHide, 0 );
QApplication::postEvent( this, eHide ); QApplication::postEvent( this, eHide );
} }
} }
......
This diff is collapsed.
...@@ -48,33 +48,33 @@ class IMEvent : public UniqueEvent ...@@ -48,33 +48,33 @@ class IMEvent : public UniqueEvent
{ {
public: public:
enum event_types { enum event_types {
PositionUpdate_Type = QEvent::User + IMEventTypeOffset + 1, PositionUpdate = QEvent::User + IMEventTypeOffset + 1,
ItemChanged_Type, ItemChanged,
ItemStateChanged_Type, ItemStateChanged,
ItemTitleChanged_Type, ItemTitleChanged,
ItemRateChanged_Type, ItemRateChanged,
ItemEsChanged_Type, ItemEsChanged,
ItemTeletextChanged_Type, ItemTeletextChanged,
InterfaceVoutUpdate_Type, InterfaceVoutUpdate,
StatisticsUpdate_Type, /*10*/ StatisticsUpdate, /*10*/
InterfaceAoutUpdate_Type, InterfaceAoutUpdate,
MetaChanged_Type, MetaChanged,
NameChanged_Type, NameChanged,
InfoChanged_Type, InfoChanged,
SynchroChanged_Type, SynchroChanged,
CachingEvent_Type, CachingEvent,
BookmarksChanged_Type, BookmarksChanged,
RecordingEvent_Type, RecordingEvent,
ProgramChanged_Type, ProgramChanged,
RandomChanged_Type, RandomChanged,
LoopOrRepeatChanged_Type, LoopOrRepeatChanged,
EPGEvent_Type, EPGEvent,
/* SignalChanged_Type, */ /* SignalChanged, */
FullscreenControlToggle_Type = QEvent::User + IMEventTypeOffset + 20, FullscreenControlToggle = QEvent::User + IMEventTypeOffset + 20,
FullscreenControlShow_Type, FullscreenControlShow,
FullscreenControlHide_Type, FullscreenControlHide,
FullscreenControlPlanHide_Type, FullscreenControlPlanHide,
}; };
IMEvent( event_types type, input_item_t *p_input = NULL ) IMEvent( event_types type, input_item_t *p_input = NULL )
: UniqueEvent( (QEvent::Type)(type) ) : UniqueEvent( (QEvent::Type)(type) )
...@@ -102,10 +102,10 @@ class PLEvent : public QEvent ...@@ -102,10 +102,10 @@ class PLEvent : public QEvent
public: public:
enum PLEventTypes enum PLEventTypes
{ {
PLItemAppended_Type = QEvent::User + PLEventTypeOffset + 1, PLItemAppended = QEvent::User + PLEventTypeOffset + 1,
PLItemRemoved_Type, PLItemRemoved,
LeafToParent_Type, LeafToParent,
PLEmpty_Type PLEmpty
}; };
PLEvent( PLEventTypes t, int i, int p = 0 ) PLEvent( PLEventTypes t, int i, int p = 0 )
: QEvent( (QEvent::Type)(t) ), i_item(i), i_parent(p) {} : QEvent( (QEvent::Type)(t) ), i_item(i), i_parent(p) {}
......
...@@ -613,7 +613,7 @@ void MainInterface::toggleFSC() ...@@ -613,7 +613,7 @@ void MainInterface::toggleFSC()
{ {
if( !fullscreenControls ) return; if( !fullscreenControls ) return;
IMEvent *eShow = new IMEvent( IMEvent::FullscreenControlToggle_Type ); IMEvent *eShow = new IMEvent( IMEvent::FullscreenControlToggle );
QApplication::postEvent( fullscreenControls, eShow ); QApplication::postEvent( fullscreenControls, eShow );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment