Browse Source

Adjust project layout

Change-Id: I0b288dd69172e80ffd0a01493b199e247e2246bf
Donald Carr 9 years ago
parent
commit
66afe852ec

+ 4 - 4
artriculate.pro

@@ -3,10 +3,10 @@ TEMPLATE = app
 QT += qml quick
 CONFIG += c++11
 
-SOURCES += main.cpp \
-    picturemodel.cpp
+SOURCES += src/main.cpp \
+    src/picturemodel.cpp
 
-RESOURCES += qml.qrc
+RESOURCES += qml/qml.qrc resources/resources.qrc
 
 # Additional import path used to resolve QML modules in Qt Creator's code model
 QML_IMPORT_PATH =
@@ -15,4 +15,4 @@ QML_IMPORT_PATH =
 include(deployment.pri)
 
 HEADERS += \
-    picturemodel.h
+    src/picturemodel.h

+ 0 - 0
ArtDelegate.qml → qml/ArtDelegate.qml


+ 0 - 0
Gravity.qml → qml/Gravity.qml


+ 0 - 0
HorizontalArtDelegate.qml → qml/HorizontalArtDelegate.qml


+ 0 - 0
ImageBoxBody.qml → qml/ImageBoxBody.qml


+ 0 - 0
RectangleBoxBody.qml → qml/RectangleBoxBody.qml


+ 0 - 0
Ticker.qml → qml/Ticker.qml


+ 0 - 0
VerticalArtDelegate.qml → qml/VerticalArtDelegate.qml


+ 0 - 0
main.qml → qml/main.qml


+ 0 - 1
qml.qrc → qml/qml.qrc

@@ -8,6 +8,5 @@
         <file>HorizontalArtDelegate.qml</file>
         <file>Gravity.qml</file>
         <file>Ticker.qml</file>
-        <file>qt_logo_green_rgb.png</file>
     </qresource>
 </RCC>

+ 0 - 0
qt_logo_green_rgb.png → resources/qt_logo_green_rgb.png


+ 5 - 0
resources/resources.qrc

@@ -0,0 +1,5 @@
+<RCC>
+    <qresource prefix="/">
+        <file>qt_logo_green_rgb.png</file>
+    </qresource>
+</RCC>

+ 1 - 1
main.cpp → src/main.cpp

@@ -6,7 +6,7 @@
 #include <QSurfaceFormat>
 #include <QTimer>
 
-#include <picturemodel.h>
+#include "picturemodel.h"
 
 int main(int argc, char *argv[])
 {

+ 0 - 0
picturemodel.cpp → src/picturemodel.cpp


+ 0 - 0
picturemodel.h → src/picturemodel.h