mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 09:08:20 -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");
|
||||
//fonts settings
|
||||
ctxt->setContextProperty("fontSize", 11);
|
||||
ctxt->setContextProperty("fontFamily", "none");
|
||||
ctxt->setContextProperty("fontFamily", QApplication::font().family());
|
||||
ctxt->setContextProperty("fontSpacing", 0.5);
|
||||
|
||||
#else
|
||||
@ -97,8 +97,11 @@ void GridComicsView::setModel(ComicModel *model)
|
||||
ctxt->setContextProperty("textColor", "#E6E6E6");
|
||||
ctxt->setContextProperty("dropShadow",false);
|
||||
//fonts settings
|
||||
ctxt->setContextProperty("fontSize", "12");
|
||||
ctxt->setContextProperty("fontFamily", "Arial");
|
||||
int fontSize = QApplication::font().pointSize();
|
||||
if(fontSize == -1)
|
||||
fontSize = QApplication::font().pixelSize();
|
||||
ctxt->setContextProperty("fontSize", fontSize);
|
||||
ctxt->setContextProperty("fontFamily", QApplication::font().family());
|
||||
ctxt->setContextProperty("fontSpacing", 0.5);
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user