Commit b4a5e139 authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: messages: simplify

parent f37779bc
...@@ -257,17 +257,14 @@ void MessagesDialog::buildTree( QTreeWidgetItem *parentItem, ...@@ -257,17 +257,14 @@ void MessagesDialog::buildTree( QTreeWidgetItem *parentItem,
item = new QTreeWidgetItem( ui.modulesTree ); item = new QTreeWidgetItem( ui.modulesTree );
char *name = vlc_object_get_name( p_obj ); char *name = vlc_object_get_name( p_obj );
if( name != NULL ) item->setText( 0, QString("%1 \"%2\" (%3)")
{ .arg( qfu( p_obj->psz_object_type ) )
item->setText( 0, qfu( p_obj->psz_object_type ) + " \"" + .arg( ( name != NULL )
qfu( name ) + "\" (" + ? QString( " \"%1\"" ).arg( qfu( name ) )
QString::number((uintptr_t)p_obj) + ")" ); : "" )
free( name ); .arg( QString::number((uintptr_t)p_obj) )
} );
else free( name );
item->setText( 0, qfu( p_obj->psz_object_type ) + " (" +
QString::number((uintptr_t)p_obj) + ")" );
item->setExpanded( true ); item->setExpanded( true );
vlc_list_t *l = vlc_list_children( p_obj ); vlc_list_t *l = vlc_list_children( p_obj );
......
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