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