mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -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();
|
||||
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"));
|
||||
|
||||
auto rootObject = dynamic_cast<QObject *>(view->rootObject());
|
||||
|
Loading…
Reference in New Issue
Block a user