Commit 5cf86fc8 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

Qt, infopanels: code simplification

parent 6bdbc1d3
......@@ -184,12 +184,9 @@ void MetaPanel::update( input_item_t *p_item )
else p_input = p_item;
char *psz_meta;
#define UPDATE_META( meta, widget ) { \
psz_meta = input_item_Get##meta( p_item ); \
if( !EMPTY_STR( psz_meta ) ) \
widget->setText( qfu( psz_meta ) ); \
else \
widget->setText( "" ); } \
#define UPDATE_META( meta, widget ) { \
psz_meta = input_item_Get##meta( p_item ); \
widget->setText( !EMPTY_STR( psz_meta ) ? qfu( psz_meta ) : "" ); \
free( psz_meta );
#define UPDATE_META_INT( meta, widget ) { \
......
Supports Markdown
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