Commit 2f94eba2 authored by Camilo Higuita's avatar Camilo Higuita

add placeholder illustrations and quick fixes

parent edfda307
<RCC>
<qresource prefix="/">
<file>Type.png</file>
<file>Spaceship.png</file>
<file>Grow.png</file>
<file>BugSearch.png</file>
<file>Bomb.png</file>
<file>E-reading.png</file>
<file>Astronaut.png</file>
</qresource>
</RCC>
......@@ -45,7 +45,8 @@ SOURCES += \
src/utils/htmlparser.cpp
RESOURCES += \
qml.qrc
qml.qrc \
assets/assets.qrc
# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =
......
......@@ -17,8 +17,11 @@ Maui.Page
id: cardsView
anchors.fill: parent
// onItemClicked: linkClicked(cardsView.model.get(index))
holder.message: "<h3>No Books!</h3><p>You can create new notes<br>links and books</p>"
holder.emoji: "qrc:/E-reading.png"
holder.isMask: false
holder.title : "No Books!"
holder.body: "Click here to save a new link"
holder.emojiSize: iconSizes.huge
}
}
......@@ -10,6 +10,7 @@ Maui.Page
property alias previewer : previewer
property var currentLink : ({})
signal linkClicked(var link)
headBarVisible: !cardsView.holder.visible
margins: isMobile ? space.big : space.enormus
headBarExit: false
......@@ -67,8 +68,16 @@ Maui.Page
id: cardsView
anchors.fill: parent
onItemClicked: linkClicked(cardsView.model.get(index))
holder.message: "<h3>No Links!</h3><p>You can create new notes<br>links and books</p>"
holder.emoji: "qrc:/Astronaut.png"
holder.isMask: false
holder.title : "No Links!"
holder.body: "Click here to save a new link"
holder.emojiSize: iconSizes.huge
Connections
{
target: cardsView.holder
onActionTriggered: newLink()
}
}
function populate()
......
......@@ -13,6 +13,7 @@ Maui.Page
margins: 0
headBarExit : false
headBarVisible: !cardsView.holder.visible
headBar.leftContent: [
Maui.ToolButton
......@@ -91,7 +92,11 @@ Maui.Page
Layout.fillWidth: true
Layout.margins: isMobile ? space.big : space.enormus
onItemClicked: noteClicked(cardsView.model.get(index))
holder.message : "<h3>No notes!</h3><p>Click here to create a new note</p>"
holder.emoji: "qrc:/Type.png"
holder.emojiSize: iconSizes.huge
holder.isMask: false
holder.title : "No notes!"
holder.body: "Click here to create a new note"
Connections
{
......
......@@ -20,11 +20,11 @@ GridView
cellWidth: itemWidth + itemSpacing
cellHeight: itemHeight + itemSpacing
clip : true
Maui.Holder
{
id: holder
visible: count < 1
message: "<h3>Nohing here!</h3><p>You can create new notes<br>links and books</p>"
visible: count < 1
}
model: ListModel { id: cardsModel}
......
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