TechDraw: hard type enums, part 3 (#19418)
* Remove magic number and hard type enums in LineNameEnum.h - Remove currently present magic numbers - Hard type enums, so magic numbers can no longer be introduced. We don't want people to introduce magic numbers. * Remove magic number and hard type enums in QGIFace.h - Remove currently present magic numbers - Hard type enums, so magic numbers can no longer be introduced. We don't want people to introduce magic numbers. * Remove magic number and hard type enums in Enums.h - Remove currently present magic numbers - Hard type enums, so magic numbers can no longer be introduced. We don't want people to introduce magic numbers. * Remove magic number and hard type enums in QGVPage.h - Remove currently present magic numbers - Hard type enums, so magic numbers can no longer be introduced. We don't want people to introduce magic numbers. * Remove magic number and hard type enums in TaskSurfaceFinishSymbols.h - Remove currently present magic numbers - Hard type enums, so magic numbers can no longer be introduced. We don't want people to introduce magic numbers. * Remove magic number and hard type enums in QGTracker.h - Remove currently present magic numbers - Hard type enums, so magic numbers can no longer be introduced. We don't want people to introduce magic numbers.
This commit is contained in:
committed by
GitHub
parent
38797d1fa4
commit
bf1f99c070
@@ -70,6 +70,7 @@ using namespace TechDraw;
|
||||
using namespace TechDrawGui;
|
||||
using namespace std;
|
||||
using DU = DrawUtil;
|
||||
using FillMode = QGIFace::FillMode;
|
||||
|
||||
const float lineScaleFactor = Rez::guiX(1.);// temp fiddle for devel
|
||||
|
||||
@@ -273,7 +274,7 @@ void QGIViewPart::drawAllFaces(void)
|
||||
QGIFace* newFace = drawFace(face, iFace);
|
||||
if (faceColor.isValid()) {
|
||||
newFace->setFillColor(faceColor);
|
||||
newFace->setFillMode(faceColor.alpha() ? QGIFace::PlainFill : QGIFace::NoFill);
|
||||
newFace->setFillMode(faceColor.alpha() ? FillMode::PlainFill : FillMode::NoFill);
|
||||
}
|
||||
|
||||
TechDraw::DrawHatch* fHatch = faceIsHatched(iFace, regularHatches);
|
||||
@@ -281,7 +282,7 @@ void QGIViewPart::drawAllFaces(void)
|
||||
if (fGeom) {
|
||||
// geometric hatch (from PAT hatch specification)
|
||||
newFace->isHatched(true);
|
||||
newFace->setFillMode(QGIFace::GeomHatchFill);
|
||||
newFace->setFillMode(FillMode::GeomHatchFill);
|
||||
std::vector<LineSet> lineSets = fGeom->getTrimmedLines(iFace);
|
||||
if (!lineSets.empty()) {
|
||||
// this face has geometric hatch lines
|
||||
@@ -311,10 +312,10 @@ void QGIViewPart::drawAllFaces(void)
|
||||
}
|
||||
if (fHatch->isSvgHatch()) {
|
||||
// svg tile hatch
|
||||
newFace->setFillMode(QGIFace::SvgFill);
|
||||
newFace->setFillMode(FillMode::SvgFill);
|
||||
} else {
|
||||
//bitmap hatch
|
||||
newFace->setFillMode(QGIFace::BitmapFill);
|
||||
newFace->setFillMode(FillMode::BitmapFill);
|
||||
}
|
||||
|
||||
// get the properties from the hatch viewprovider
|
||||
|
||||
Reference in New Issue
Block a user