Commit 1abc5673 authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: IMEvent: use getter instead of friend class.

Plus one friendship was unused.
parent 6db9d209
...@@ -181,7 +181,7 @@ void InputManager::customEvent( QEvent *event ) ...@@ -181,7 +181,7 @@ void InputManager::customEvent( QEvent *event )
IMEvent *ple = static_cast<IMEvent *>(event); IMEvent *ple = static_cast<IMEvent *>(event);
if( i_type == ItemChanged_Type ) if( i_type == ItemChanged_Type )
UpdateMeta( ple->p_item ); UpdateMeta( ple->item() );
if( !hasInput() ) if( !hasInput() )
return; return;
...@@ -197,7 +197,7 @@ void InputManager::customEvent( QEvent *event ) ...@@ -197,7 +197,7 @@ void InputManager::customEvent( QEvent *event )
break; break;
case ItemChanged_Type: case ItemChanged_Type:
/* Ignore ItemChanged_Type event that does not apply to our input */ /* Ignore ItemChanged_Type event that does not apply to our input */
if( p_item == ple->p_item ) if( p_item == ple->item() )
{ {
UpdateStatus(); UpdateStatus();
// UpdateName(); // UpdateName();
......
...@@ -76,8 +76,6 @@ enum { NORMAL, /* loop: 0, repeat: 0 */ ...@@ -76,8 +76,6 @@ enum { NORMAL, /* loop: 0, repeat: 0 */
class IMEvent : public UniqueEvent class IMEvent : public UniqueEvent
{ {
friend class InputManager;
friend class MainInputManager;
public: public:
IMEvent( int type, input_item_t *p_input = NULL ) IMEvent( int type, input_item_t *p_input = NULL )
: UniqueEvent( (QEvent::Type)(type) ) : UniqueEvent( (QEvent::Type)(type) )
...@@ -90,6 +88,7 @@ friend class MainInputManager; ...@@ -90,6 +88,7 @@ friend class MainInputManager;
if( p_item ) if( p_item )
vlc_gc_decref( p_item ); vlc_gc_decref( p_item );
} }
input_item_t *item() const { return p_item; };
bool itemEquals( input_item_t *p_item_ ) const bool itemEquals( input_item_t *p_item_ ) const
{ {
return p_item_ == p_item; return p_item_ == p_item;
......
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