[TD]Centralize preference getters

This commit is contained in:
wandererfan
2020-04-12 20:44:08 -04:00
committed by WandererFan
parent a6cfe5c47f
commit a3029fec74
61 changed files with 881 additions and 501 deletions

View File

@@ -35,10 +35,12 @@
#include <Base/Parameter.h>
#include <Mod/TechDraw/App/DrawUtil.h>
//#include <Mod/TechDraw/App/Preferences.h>
#include <qmath.h>
#include "Rez.h"
#include "DrawGuiUtil.h"
#include "PreferencesGui.h"
#include "QGIView.h"
#include "QGIGhostHighlight.h"
@@ -52,7 +54,7 @@ QGIGhostHighlight::QGIGhostHighlight()
//make the ghost very visible
QFont f(QGIView::getPrefFont());
double fontSize = QGIView::getPrefFontSize();
double fontSize = Preferences::labelFontSizeMM();
setFont(f, fontSize);
setReference("drag");
setStyle(Qt::SolidLine);