Added read marks to FlowView.qml

This commit is contained in:
Luis Ángel San Martín 2016-04-13 17:59:49 +02:00
parent 8a478a2ef0
commit b13cf09c09
2 changed files with 14 additions and 2 deletions

View File

@ -36,6 +36,8 @@ InfoComicsView::InfoComicsView(QWidget *parent)
l->setContentsMargins(0,0,0,0);
l->setSpacing(0);
setShowMarks(true);
QLOG_TRACE() << "GridComicsView";
}
@ -148,7 +150,8 @@ void InfoComicsView::selectIndex(int index)
void InfoComicsView::setShowMarks(bool show)
{
int FIXME;
QQmlContext *ctxt = view->rootContext();
ctxt->setContextProperty("show_marks", show);
}
void InfoComicsView::selectAll()

View File

@ -50,7 +50,6 @@ Rectangle {
anchors.margins: 0
MouseArea {
anchors.fill : list
onWheel: {
@ -137,6 +136,16 @@ Rectangle {
cache: false
}
//mark
Image {
id: mark
width: 23
height: 23
source: read_column&&show_marks?"tick.png":has_been_opened&&show_marks?"reading.png":""
anchors {right: coverElement.right; top: coverElement.top; topMargin: 9; rightMargin: 9}
asynchronous : true
}
//border
Rectangle {
width: coverElement.width