[TD]fix 4335 section line pos on rotated base
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user