restructured resource files directories

This commit is contained in:
Jeena 2015-02-28 21:43:53 +01:00
parent b6c0d89f1f
commit e14a639d71
18 changed files with 29 additions and 23 deletions

View file

@ -11,7 +11,9 @@ SOURCES += \
src/tinytinyrsslogin.cpp
RESOURCES += \
resources/resources.qrc \
html/html.qrc \
misc/misc.qrc \
qml/qml.qrc \
mac {
RC_FILE = misc/Icon.icns

7
html/html.qrc Normal file
View file

@ -0,0 +1,7 @@
<RCC>
<qresource prefix="/html">
<file>content.css</file>
<file>content.html</file>
<file>content.js</file>
</qresource>
</RCC>

7
misc/misc.qrc Normal file
View file

@ -0,0 +1,7 @@
<RCC>
<qresource prefix="/misc">
<file>feedthemonkey.xpm</file>
<file>Icon.icns</file>
<file>feedthemonkey.desktop</file>
</qresource>
</RCC>

View file

@ -46,7 +46,7 @@ ScrollView {
WebView {
id: webView
url: "content.html"
url: "../html/content.html"
// Enable communication between QML and WebKit
experimental.preferences.navigatorQtObjectEnabled: true;

10
qml/qml.qrc Normal file
View file

@ -0,0 +1,10 @@
<RCC>
<qresource prefix="/qml">
<file>main.qml</file>
<file>TheMenuBar.qml</file>
<file>Content.qml</file>
<file>Login.qml</file>
<file>PostListItem.qml</file>
<file>Sidebar.qml</file>
</qresource>
</RCC>

View file

@ -1,20 +0,0 @@
<RCC>
<qresource prefix="">
<file>html/content.css</file>
<file>html/content.html</file>
<file>html/content.js</file>
</qresource>
<qresource prefix="">
<file>qml/main.qml</file>
<file>qml/TheMenuBar.qml</file>
<file>qml/Content.qml</file>
<file>qml/Login.qml</file>
<file>qml/PostListItem.qml</file>
<file>qml/Sidebar.qml</file>
</qresource>
<qresource prefix="">
<file>misc/feedthemonkey.xpm</file>
<file>misc/Icon.icns</file>
<file>misc/feedthemonkey.desktop</file>
</qresource>
</RCC>

View file

@ -100,7 +100,7 @@ void TinyTinyRSS::onPostReadChanged(bool r)
{
Post *post = (Post *)sender();
updateArticle(post->id(), 2, !r, [post] (const QJsonObject &json) {
updateArticle(post->id(), 2, !r, [post] (const QJsonObject &) {
// not doing anything with this yet.
});
}