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

MediaLibraryView: Don't register qml files directly to resources.qrc

parent 382d63a7
...@@ -57,8 +57,4 @@ ...@@ -57,8 +57,4 @@
<file>THANKS</file> <file>THANKS</file>
<file>TRANSLATORS</file> <file>TRANSLATORS</file>
</qresource> </qresource>
<qresource prefix="/qml">
<file alias="MediaLibraryView.qml">src/Gui/library/ui/MediaLibraryView.qml</file>
<file alias="MediaItem.qml">src/Gui/library/ui/MediaItem.qml</file>
</qresource>
</RCC> </RCC>
...@@ -55,7 +55,7 @@ MediaLibraryView::MediaLibraryView( QWidget* parent ) ...@@ -55,7 +55,7 @@ MediaLibraryView::MediaLibraryView( QWidget* parent )
ctx->setContextProperty( QStringLiteral( "mlModel" ), Core::instance()->library()->model( Library::MediaType::Video ) ); ctx->setContextProperty( QStringLiteral( "mlModel" ), Core::instance()->library()->model( Library::MediaType::Video ) );
ctx->setContextProperty( QStringLiteral( "view" ), this ); ctx->setContextProperty( QStringLiteral( "view" ), this );
view->setSource( QUrl( QStringLiteral( "qrc:/qml/MediaLibraryView.qml" ) ) ); view->setSource( QUrl( QStringLiteral( "qrc:/QML/MediaLibraryView.qml" ) ) );
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