[TD]fix 4335 section line pos on rotated base

This commit is contained in:
wandererfan
2020-06-13 14:55:29 -04:00
committed by WandererFan
parent 8a9ea0caeb
commit b7a448dadc
5 changed files with 45 additions and 23 deletions

View File

@@ -106,6 +106,12 @@ QColor QGIDecoration::prefSelectColor()
return PreferencesGui::selectQColor();
}
QRectF QGIDecoration::boundingRect() const
{
return childrenBoundingRect();
}
void QGIDecoration::makeMark(double x, double y)
{
QGICMark* cmItem = new QGICMark(-1);

View File

@@ -47,6 +47,7 @@ public:
enum {Type = QGraphicsItem::UserType + 173};
int type() const { return Type;}
virtual QRectF boundingRect() const;
virtual void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0 );
virtual void draw();
void setWidth(double w);

View File

@@ -872,7 +872,7 @@ void QGIViewPart::drawSectionLine(TechDraw::DrawViewSection* viewSection, bool b
double fontSize = Preferences::dimFontSizeMM();
sectionLine->setFont(m_font, fontSize);
sectionLine->setZValue(ZVALUE::SECTIONLINE);
sectionLine->setRotation(viewPart->Rotation.getValue());
sectionLine->setRotation(- viewPart->Rotation.getValue());
sectionLine->draw();
}
}