mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
used default values in QML context properties to avoid warnings
This commit is contained in:
parent
675adb526c
commit
d0e7aa65f5
@ -84,7 +84,7 @@ void GridComicsView::setModel(ComicModel *model)
|
|||||||
ctxt->setContextProperty("textColor", "#636363");
|
ctxt->setContextProperty("textColor", "#636363");
|
||||||
//fonts settings
|
//fonts settings
|
||||||
ctxt->setContextProperty("fontSize", 11);
|
ctxt->setContextProperty("fontSize", 11);
|
||||||
ctxt->setContextProperty("fontFamily", "none");
|
ctxt->setContextProperty("fontFamily", QApplication::font().family());
|
||||||
ctxt->setContextProperty("fontSpacing", 0.5);
|
ctxt->setContextProperty("fontSpacing", 0.5);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
@ -97,8 +97,11 @@ void GridComicsView::setModel(ComicModel *model)
|
|||||||
ctxt->setContextProperty("textColor", "#E6E6E6");
|
ctxt->setContextProperty("textColor", "#E6E6E6");
|
||||||
ctxt->setContextProperty("dropShadow",false);
|
ctxt->setContextProperty("dropShadow",false);
|
||||||
//fonts settings
|
//fonts settings
|
||||||
ctxt->setContextProperty("fontSize", "12");
|
int fontSize = QApplication::font().pointSize();
|
||||||
ctxt->setContextProperty("fontFamily", "Arial");
|
if(fontSize == -1)
|
||||||
|
fontSize = QApplication::font().pixelSize();
|
||||||
|
ctxt->setContextProperty("fontSize", fontSize);
|
||||||
|
ctxt->setContextProperty("fontFamily", QApplication::font().family());
|
||||||
ctxt->setContextProperty("fontSpacing", 0.5);
|
ctxt->setContextProperty("fontSpacing", 0.5);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user