[vlmc-devel] MediaLibraryView: Don't register qml files directly to resources.qrc

Yikai Lu git at videolan.org
Mon Aug 29 19:24:48 CEST 2016


vlmc | branch: medialibrary | Yikai Lu <luyikei.qmltu at gmail.com> | Mon Aug 29 12:24:28 2016 -0500| [3c25eb664b67ee488370fd5727d51e45a0f1fa52] | committer: Yikai Lu

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

> https://code.videolan.org/videolan/vlmc/commit/3c25eb664b67ee488370fd5727d51e45a0f1fa52
---

 resources.qrc                        | 4 ----
 src/Gui/library/MediaLibraryView.cpp | 2 +-
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/resources.qrc b/resources.qrc
index c511b55..de01d03 100644
--- a/resources.qrc
+++ b/resources.qrc
@@ -57,8 +57,4 @@
         <file>THANKS</file>
         <file>TRANSLATORS</file>
     </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>
diff --git a/src/Gui/library/MediaLibraryView.cpp b/src/Gui/library/MediaLibraryView.cpp
index c606dee..a216c7d 100644
--- a/src/Gui/library/MediaLibraryView.cpp
+++ b/src/Gui/library/MediaLibraryView.cpp
@@ -55,7 +55,7 @@ MediaLibraryView::MediaLibraryView( QWidget* parent )
     ctx->setContextProperty( QStringLiteral( "mlModel" ), Core::instance()->library()->model( Library::MediaType::Video ) );
     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);
 }
 



More information about the Vlmc-devel mailing list