From 5690e86326841aff8ff45516dfcbf1d7218c8a1d Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Thu, 21 Jul 2016 11:06:20 +0200 Subject: Gallery: use the new .pro syntax for RESOURCES A .qrc file is no longer mandatory. One can list resources directly in the RESOURCES variable. This results to a flatter Resources-tree in Qt Creator's project tree. Change-Id: If272e4a7974f433552cb848ddc83827dd09669d6 Reviewed-by: Mitch Curtis --- examples/quickcontrols2/gallery/gallery.pro | 9 ++--- examples/quickcontrols2/gallery/gallery.qrc | 61 ----------------------------- 2 files changed, 4 insertions(+), 66 deletions(-) delete mode 100644 examples/quickcontrols2/gallery/gallery.qrc diff --git a/examples/quickcontrols2/gallery/gallery.pro b/examples/quickcontrols2/gallery/gallery.pro index cb0736fd..fbfc3df8 100644 --- a/examples/quickcontrols2/gallery/gallery.pro +++ b/examples/quickcontrols2/gallery/gallery.pro @@ -5,12 +5,11 @@ QT += quick quickcontrols2 SOURCES += \ gallery.cpp -OTHER_FILES += \ - gallery.qml \ - pages/*.qml - RESOURCES += \ - gallery.qrc + gallery.qml \ + qtquickcontrols2.conf \ + $$files(images/*.png) \ + $$files(pages/*.qml) target.path = $$[QT_INSTALL_EXAMPLES]/quickcontrols2/gallery INSTALLS += target diff --git a/examples/quickcontrols2/gallery/gallery.qrc b/examples/quickcontrols2/gallery/gallery.qrc deleted file mode 100644 index 01c61324..00000000 --- a/examples/quickcontrols2/gallery/gallery.qrc +++ /dev/null @@ -1,61 +0,0 @@ - - - gallery.qml - qtquickcontrols2.conf - images/arrow.png - images/arrow@2x.png - images/arrow@3x.png - images/arrow@4x.png - images/arrows.png - images/arrows@2x.png - images/arrows@3x.png - images/arrows@4x.png - images/drawer.png - images/drawer@2x.png - images/drawer@3x.png - images/drawer@4x.png - images/menu.png - images/menu@2x.png - images/menu@3x.png - images/menu@4x.png - images/+material/drawer.png - images/+material/drawer@2x.png - images/+material/drawer@3x.png - images/+material/drawer@4x.png - images/+material/menu.png - images/+material/menu@2x.png - images/+material/menu@3x.png - images/+material/menu@4x.png - images/qt-logo.png - images/qt-logo@2x.png - images/qt-logo@3x.png - images/qt-logo@4x.png - pages/BusyIndicatorPage.qml - pages/ButtonPage.qml - pages/CheckBoxPage.qml - pages/ComboBoxPage.qml - pages/DialPage.qml - pages/DrawerPage.qml - pages/FramePage.qml - pages/GroupBoxPage.qml - pages/MenuPage.qml - pages/PageIndicatorPage.qml - pages/PopupPage.qml - pages/ProgressBarPage.qml - pages/RadioButtonPage.qml - pages/RangeSliderPage.qml - pages/ScrollBarPage.qml - pages/ScrollIndicatorPage.qml - pages/SliderPage.qml - pages/SpinBoxPage.qml - pages/StackViewPage.qml - pages/SwipeViewPage.qml - pages/SwitchPage.qml - pages/TabBarPage.qml - pages/TextAreaPage.qml - pages/TextFieldPage.qml - pages/ToolTipPage.qml - pages/TumblerPage.qml - pages/DelegatePage.qml - - -- cgit v1.2.3