Merge pull request #19411 from benj5378/enums2

TechDraw: hard type enums, part 2
This commit is contained in:
Chris Hennes
2025-03-03 10:37:21 -06:00
committed by GitHub
36 changed files with 411 additions and 451 deletions

View File

@@ -785,7 +785,7 @@ void QGIViewBalloon::drawBalloon(bool originDrag)
double xAdj = 0.0;
double yAdj = 0.0;
int endType = balloon->EndType.getValue();
ArrowType endType = static_cast<ArrowType>(balloon->EndType.getValue());
double arrowAdj = QGIArrow::getOverlapAdjust(
endType, balloon->EndTypeScale.getValue() * QGIArrow::getPrefArrowSize());
@@ -955,8 +955,9 @@ QColor QGIViewBalloon::prefNormalColor()
return getNormalColor();
}
int QGIViewBalloon::prefDefaultArrow() const { return Preferences::balloonArrow(); }
ArrowType QGIViewBalloon::prefDefaultArrow() const {
return Preferences::balloonArrow();
}
//should this be an object property or global preference?
//when would you want a crooked pyramid?