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

Qt, infopanels: code simplification

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