vlc_linux/vlc-3.0.16/modules/gui/qt/components/open_panels.cpp
/* Show a fileBrowser to select a subtitle */
Show a fileBrowser to select a subtitle
Show a fileBrowser to select a subtitle
void FileOpenPanel::browseFileSub()
{
    QStringList urls = THEDP->showSimpleOpen( qtr("Open subtitle file"),
                           EXT_FILTER_SUBTITLE, p_intf->p_sys->filepath );
    if( urls.isEmpty() ) {
        return;
    }
    subUrl = QUrl(urls[0]);
    ui.subInput->setText( subUrl.toDisplayString(QUrl::RemovePassword | QUrl::PreferLocalFile | QUrl::NormalizePathSegments) );
    updateMRL();
}
void FileOpenPanel :: browseFileSub ( ) { QStringList urls = THEDP -> showSimpleOpen ( qtr ( " " ) , EXT_FILTER_SUBTITLE , p_intf -> p_sys -> filepath ) ; if ( urls . isEmpty ( ) ) { return ; } subUrl = QUrl ( urls [ 0 ] ) ; ui . subInput -> setText ( subUrl . toDisplayString ( QUrl :: RemovePassword | QUrl :: PreferLocalFile | QUrl :: NormalizePathSegments ) ) ; updateMRL ( ) ; }
Show a fileBrowser to select a subtitle
Show a fileBrowser to select a subtitle