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