Commit ddd3518c authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - cosmetic

parent f417c29f
...@@ -188,6 +188,7 @@ void PLItem::update( playlist_item_t *p_item, bool iscurrent ) ...@@ -188,6 +188,7 @@ void PLItem::update( playlist_item_t *p_item, bool iscurrent )
assert( p_item->p_input->i_id == i_input_id ); assert( p_item->p_input->i_id == i_input_id );
/* Useful for the model */
i_type = p_item->p_input->i_type; i_type = p_item->p_input->i_type;
b_current = iscurrent; b_current = iscurrent;
...@@ -254,7 +255,6 @@ void PLItem::update( playlist_item_t *p_item, bool iscurrent ) ...@@ -254,7 +255,6 @@ void PLItem::update( playlist_item_t *p_item, bool iscurrent )
break; break;
} }
} }
} }
#undef ADD_META #undef ADD_META
} }
......
...@@ -35,6 +35,8 @@ static int ChangeAudio( vlc_object_t *p_this, const char *var, vlc_value_t o, ...@@ -35,6 +35,8 @@ static int ChangeAudio( vlc_object_t *p_this, const char *var, vlc_value_t o,
vlc_value_t n, void *param ); vlc_value_t n, void *param );
static int ItemChanged( vlc_object_t *, const char *, static int ItemChanged( vlc_object_t *, const char *,
vlc_value_t, vlc_value_t, void * ); vlc_value_t, vlc_value_t, void * );
static int InputChanged( vlc_object_t *, const char *,
vlc_value_t, vlc_value_t, void * );
static int InterfaceChanged( vlc_object_t *, const char *, static int InterfaceChanged( vlc_object_t *, const char *,
vlc_value_t, vlc_value_t, void * ); vlc_value_t, vlc_value_t, void * );
static int ItemStateChanged( vlc_object_t *, const char *, static int ItemStateChanged( vlc_object_t *, const char *,
...@@ -139,26 +141,24 @@ void InputManager::customEvent( QEvent *event ) ...@@ -139,26 +141,24 @@ void InputManager::customEvent( QEvent *event )
IMEvent *ime = static_cast<IMEvent *>(event); IMEvent *ime = static_cast<IMEvent *>(event);
if ( type == PositionUpdate_Type ) switch( type )
{ {
case PositionUpdate_Type:
UpdatePosition(); UpdatePosition();
} break;
else if ( type == ItemChanged_Type ) case ItemChanged_Type:
{
UpdateMeta(); UpdateMeta();
UpdateTitle(); UpdateTitle();
} break;
else if ( type == ItemRateChanged_Type ) case ItemRateChanged_Type:
{
UpdateRate(); UpdateRate();
} break;
else if ( type == ItemTitleChanged_Type ) case ItemTitleChanged_Type:
{
UpdateTitle(); UpdateTitle();
} break;
else if (type == ItemStateChanged_Type ) case ItemStateChanged_Type:
{
UpdateStatus(); UpdateStatus();
break;
} }
} }
......
...@@ -34,12 +34,12 @@ ...@@ -34,12 +34,12 @@
#include <QObject> #include <QObject>
#include <QEvent> #include <QEvent>
static int PositionUpdate_Type = QEvent::User + 6; static int const PositionUpdate_Type = QEvent::User + 6;
static int ItemChanged_Type = QEvent::User + 7; static int const ItemChanged_Type = QEvent::User + 7;
static int ItemRateChanged_Type = QEvent::User + 8; static int const ItemRateChanged_Type = QEvent::User + 8;
static int ItemTitleChanged_Type = QEvent::User + 9; static int const ItemTitleChanged_Type = QEvent::User + 9;
static int ItemStateChanged_Type = QEvent::User + 10; static int const ItemStateChanged_Type = QEvent::User + 10;
static int VolumeChanged_Type = QEvent::User + 11; static int const VolumeChanged_Type = QEvent::User + 11;
class IMEvent : public QEvent class IMEvent : public QEvent
{ {
......
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