Commit 8332a26a authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: toAscii has been deprecated

Ref #8532
parent b25fe822
...@@ -1007,7 +1007,7 @@ bool PLModel::action( QAction *action, const QModelIndexList &indexes ) ...@@ -1007,7 +1007,7 @@ bool PLModel::action( QAction *action, const QModelIndexList &indexes )
case ACTION_ENQUEUEFILE: case ACTION_ENQUEUEFILE:
foreach( const QString &uri, a.uris ) foreach( const QString &uri, a.uris )
playlist_Add( THEPL, uri.toAscii().constData(), playlist_Add( THEPL, uri.toLatin1().constData(),
NULL, PLAYLIST_APPEND | PLAYLIST_PREPARSE, NULL, PLAYLIST_APPEND | PLAYLIST_PREPARSE,
PLAYLIST_END, PLAYLIST_END,
getPLRootType() == ROOTTYPE_CURRENT_PLAYING, getPLRootType() == ROOTTYPE_CURRENT_PLAYING,
...@@ -1016,7 +1016,7 @@ bool PLModel::action( QAction *action, const QModelIndexList &indexes ) ...@@ -1016,7 +1016,7 @@ bool PLModel::action( QAction *action, const QModelIndexList &indexes )
case ACTION_ENQUEUEDIR: case ACTION_ENQUEUEDIR:
if( a.uris.isEmpty() ) break; if( a.uris.isEmpty() ) break;
p_input = input_item_New( a.uris.first().toAscii().constData(), NULL ); p_input = input_item_New( a.uris.first().toLatin1().constData(), NULL );
if( unlikely( p_input == NULL ) ) break; if( unlikely( p_input == NULL ) ) break;
/* FIXME: playlist_AddInput() can fail */ /* FIXME: playlist_AddInput() can fail */
......
...@@ -296,7 +296,7 @@ void StandardPLPanel::popupAction( QAction *action ) ...@@ -296,7 +296,7 @@ void StandardPLPanel::popupAction( QAction *action )
case VLCModelSubInterface::ACTION_EXPLORE: case VLCModelSubInterface::ACTION_EXPLORE:
/* locally handled only */ /* locally handled only */
temp = model->getURI( index ); temp = model->getURI( index );
if( ! temp.isEmpty() ) path = make_path( temp.toAscii().constData() ); if( ! temp.isEmpty() ) path = make_path( temp.toLatin1().constData() );
if( path == NULL ) return; if( path == NULL ) return;
QDesktopServices::openUrl( QDesktopServices::openUrl(
QUrl::fromLocalFile( QFileInfo( qfu( path ) ).absolutePath() ) ); QUrl::fromLocalFile( QFileInfo( qfu( path ) ).absolutePath() ) );
......
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