mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Added read marks to FlowView.qml
This commit is contained in:
parent
8a478a2ef0
commit
b13cf09c09
@ -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()
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user