Merge pull request #19411 from benj5378/enums2
TechDraw: hard type enums, part 2
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user