Set the a default pixel threshold in CRL/etc/commons.display.
NOTE: Due to Python pathes, the NDA.common is *not* seen, even by NDA protected configuration. They are using the non-NDA one. No harm in that, just need to be known...
This commit is contained in:
parent
7c0f1fcf58
commit
6a3c9d1d54
|
@ -13,12 +13,17 @@
|
|||
# +-----------------------------------------------------------------+
|
||||
|
||||
|
||||
import Cfg
|
||||
import Viewer
|
||||
from helpers import overlay, l, u, n
|
||||
from common.colors import toRGB
|
||||
from common.patterns import toHexa
|
||||
|
||||
|
||||
def createStyles ( scale=1.0 ):
|
||||
with overlay.CfgCache(priority=Cfg.Parameter.Priority.UserFile) as cfg:
|
||||
cfg.viewer.minimumSize = 500
|
||||
cfg.viewer.pixelThreshold = 5
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# Style: Alliance.Coriolis [black].
|
||||
|
|
|
@ -1112,6 +1112,7 @@ namespace Hurricane {
|
|||
, _textFontHeight (20)
|
||||
, _pixelThreshold (Cfg::getParamInt("viewer.pixelThreshold",50)->asInt())
|
||||
{
|
||||
//cerr << "viewer.pixelThreshold=" << _pixelThreshold << endl;
|
||||
//setBackgroundRole ( QPalette::Dark );
|
||||
//setAutoFillBackground ( false );
|
||||
setAttribute ( Qt::WA_OpaquePaintEvent );
|
||||
|
|
Loading…
Reference in New Issue