mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
added TODO
This commit is contained in:
parent
a9b5b8bd7f
commit
46ea054d1a
@ -127,7 +127,6 @@ void GridComicsView::createCoverSizeSliderWidget()
|
|||||||
|
|
||||||
void GridComicsView::setToolBar(QToolBar *toolBar)
|
void GridComicsView::setToolBar(QToolBar *toolBar)
|
||||||
{
|
{
|
||||||
QLOG_INFO() << "setToolBar";
|
|
||||||
static_cast<QVBoxLayout *>(this->layout())->insertWidget(1,toolBar);
|
static_cast<QVBoxLayout *>(this->layout())->insertWidget(1,toolBar);
|
||||||
this->toolbar = toolBar;
|
this->toolbar = toolBar;
|
||||||
|
|
||||||
@ -140,9 +139,6 @@ void GridComicsView::setModel(ComicModel *model)
|
|||||||
if(model == NULL)
|
if(model == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(this->model == model)
|
|
||||||
return;
|
|
||||||
|
|
||||||
ComicsView::setModel(model);
|
ComicsView::setModel(model);
|
||||||
|
|
||||||
QQmlContext *ctxt = view->rootContext();
|
QQmlContext *ctxt = view->rootContext();
|
||||||
@ -152,6 +148,7 @@ void GridComicsView::setModel(ComicModel *model)
|
|||||||
|
|
||||||
_selectionModel = new QItemSelectionModel(model);
|
_selectionModel = new QItemSelectionModel(model);
|
||||||
|
|
||||||
|
//TODO fix crash in the following line on comics views switch
|
||||||
ctxt->setContextProperty("comicsList", model);
|
ctxt->setContextProperty("comicsList", model);
|
||||||
ctxt->setContextProperty("comicsSelection", _selectionModel);
|
ctxt->setContextProperty("comicsSelection", _selectionModel);
|
||||||
ctxt->setContextProperty("contextMenuHelper",this);
|
ctxt->setContextProperty("contextMenuHelper",this);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user