Commit 1abc5673 authored by François Cartegnie's avatar François 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 )
IMEvent *ple = static_cast<IMEvent *>(event);
if( i_type == ItemChanged_Type )
UpdateMeta( ple->p_item );
UpdateMeta( ple->item() );
if( !hasInput() )
return;
......@@ -197,7 +197,7 @@ void InputManager::customEvent( QEvent *event )
break;
case ItemChanged_Type:
/* Ignore ItemChanged_Type event that does not apply to our input */
if( p_item == ple->p_item )
if( p_item == ple->item() )
{
UpdateStatus();
// UpdateName();
......
......@@ -76,8 +76,6 @@ enum { NORMAL, /* loop: 0, repeat: 0 */
class IMEvent : public UniqueEvent
{
friend class InputManager;
friend class MainInputManager;
public:
IMEvent( int type, input_item_t *p_input = NULL )
: UniqueEvent( (QEvent::Type)(type) )
......@@ -90,6 +88,7 @@ friend class MainInputManager;
if( p_item )
vlc_gc_decref( p_item );
}
input_item_t *item() const { return p_item; };
bool itemEquals( input_item_t *p_item_ ) const
{
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