Commit 8cecc7be authored by Ludovic Fauvet's avatar Ludovic Fauvet

Qt: QString::toAscii has been deprecated in Qt5

parent a6020fcc
......@@ -345,7 +345,7 @@ void StandardPLPanel::popupExplore()
char *path = NULL;
if( ! uri.isEmpty() )
path = make_path( uri.toAscii().constData() );
path = make_path( uri.toLatin1().constData() );
if( path == NULL )
return;
......
......@@ -250,7 +250,7 @@ void VLCProfileSelector::updateOptions( int i )
HASHPICK( "video", "filters" );
if ( !value.isEmpty() )
{
QStringList valuesList = QUrl::fromPercentEncoding( value.toAscii() ).split( ";" );
QStringList valuesList = QUrl::fromPercentEncoding( value.toLatin1() ).split( ";" );
smrl.option( "vfilter", valuesList.join( ":" ) );
}
......@@ -265,7 +265,7 @@ void VLCProfileSelector::updateOptions( int i )
HASHPICK( "vcodec", "custom" );
if( !value.isEmpty() )
codecoptions << QUrl::fromPercentEncoding( value.toAscii() );
codecoptions << QUrl::fromPercentEncoding( value.toLatin1() );
if ( codecoptions.count() )
smrl.option( "venc",
......@@ -316,7 +316,7 @@ void VLCProfileSelector::updateOptions( int i )
HASHPICK( "audio", "filters" );
if ( !value.isEmpty() )
{
QStringList valuesList = QUrl::fromPercentEncoding( value.toAscii() ).split( ";" );
QStringList valuesList = QUrl::fromPercentEncoding( value.toLatin1() ).split( ";" );
smrl.option( "afilter", valuesList.join( ":" ) );
}
......@@ -679,11 +679,11 @@ void VLCProfileEditor::fillProfile( const QString& qs )
else if( object->inherits( "QLineEdit" ) )
{
QLineEdit *box = qobject_cast<QLineEdit *>( object );
box->setText( QUrl::fromPercentEncoding( value.toAscii() ) );
box->setText( QUrl::fromPercentEncoding( value.toLatin1() ) );
}
else if ( object->inherits( "QListWidget" ) )
{
QStringList valuesList = QUrl::fromPercentEncoding( value.toAscii() ).split( ";" );
QStringList valuesList = QUrl::fromPercentEncoding( value.toLatin1() ).split( ";" );
const QListWidget *list = qobject_cast<const QListWidget *>( object );
for( int i=0; i < list->count(); i++ )
{
......
......@@ -69,7 +69,7 @@ SoutInputBox::SoutInputBox( QWidget *_parent, const QString& mrl ) : QGroupBox(
void SoutInputBox::setMRL( const QString& mrl )
{
QUrl uri = QUrl::fromEncoded( mrl.toAscii() );
QUrl uri = QUrl::fromEncoded( mrl.toLatin1() );
sourceLine->setText( uri.toString() );
QString type = uri.scheme();
if ( type.isEmpty() ) type = qtr( I_FILE_SLASH_DIR );
......
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