Commit e68df491 authored by luyikei's avatar luyikei Committed by Hugo Beauzée-Luyssen

MediaLibraryView: Use QStringLiteral

parent 5ba43d31
...@@ -46,9 +46,9 @@ MediaLibraryView::MediaLibraryView(QWidget *parent) ...@@ -46,9 +46,9 @@ MediaLibraryView::MediaLibraryView(QWidget *parent)
layout->addWidget( container ); layout->addWidget( container );
auto ctx = view->rootContext(); auto ctx = view->rootContext();
ctx->setContextProperty( "mlModel", Core::instance()->mediaLibrary()->model( MediaLibrary::MediaType::Video ) ); ctx->setContextProperty( QStringLiteral( "mlModel" ), Core::instance()->mediaLibrary()->model( MediaLibrary::MediaType::Video ) );
view->setSource( QUrl( "qrc:/qml/MediaLibraryView" ) ); view->setSource( QUrl( QStringLiteral( "qrc:/qml/MediaLibraryView" ) ) );
view->setResizeMode(QQuickView::SizeRootObjectToView); view->setResizeMode(QQuickView::SizeRootObjectToView);
} }
......
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