mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 17:18:23 -04:00
Configure the initial size of the covers
This commit is contained in:
parent
59ae6c5e51
commit
27383da945
@ -145,6 +145,14 @@ GridComicsView::GridComicsView(QWidget *parent)
|
|||||||
bool showInfo = settings->value(COMICS_GRID_SHOW_INFO, false).toBool();
|
bool showInfo = settings->value(COMICS_GRID_SHOW_INFO, false).toBool();
|
||||||
ctxt->setContextProperty("showInfo", showInfo);
|
ctxt->setContextProperty("showInfo", showInfo);
|
||||||
|
|
||||||
|
auto comicDB = new ComicDB();
|
||||||
|
auto comicInfo = &(comicDB->info);
|
||||||
|
ctxt->setContextProperty("currentComic", comicDB);
|
||||||
|
ctxt->setContextProperty("currentComicInfo", comicInfo);
|
||||||
|
ctxt->setContextProperty("showCurrentComic", QVariant(false));
|
||||||
|
|
||||||
|
updateCoversSizeInContext(YACREADER_MIN_COVER_WIDTH, ctxt);
|
||||||
|
|
||||||
view->setSource(QUrl("qrc:/qml/GridComicsView.qml"));
|
view->setSource(QUrl("qrc:/qml/GridComicsView.qml"));
|
||||||
|
|
||||||
auto rootObject = dynamic_cast<QObject *>(view->rootObject());
|
auto rootObject = dynamic_cast<QObject *>(view->rootObject());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user