vlc_linux/vlc-3.0.16/modules/gui/qt/dialogs/plugins.cpp
/* Safe copy of the extension_t struct */
Safe copy of the extension_t struct
Safe copy of the extension_t struct
ExtensionListModel::ExtensionCopy::ExtensionCopy( extension_t *p_ext )
{
    name = qfu( p_ext->psz_name );
    description = qfu( p_ext->psz_description );
    shortdesc = qfu( p_ext->psz_shortdescription );
    if( description.isEmpty() )
        description = shortdesc;
    if( shortdesc.isEmpty() && !description.isEmpty() )
        shortdesc = description;
    title = qfu( p_ext->psz_title );
    author = qfu( p_ext->psz_author );
    version = qfu( p_ext->psz_version );
    url = qfu( p_ext->psz_url );
    icon = loadPixmapFromData( p_ext->p_icondata, p_ext->i_icondata_size );
}
ExtensionListModel :: ExtensionCopy :: ExtensionCopy ( extension_t * p_ext ) { name = qfu ( p_ext -> psz_name ) ; description = qfu ( p_ext -> psz_description ) ; shortdesc = qfu ( p_ext -> psz_shortdescription ) ; if ( description . isEmpty ( ) ) description = shortdesc ; if ( shortdesc . isEmpty ( ) && ! description . isEmpty ( ) ) shortdesc = description ; title = qfu ( p_ext -> psz_title ) ; author = qfu ( p_ext -> psz_author ) ; version = qfu ( p_ext -> psz_version ) ; url = qfu ( p_ext -> psz_url ) ; icon = loadPixmapFromData ( p_ext -> p_icondata , p_ext -> i_icondata_size ) ; }
Safe copy of the extension_t struct
Safe copy of the extension_t struct