remove unneeded boundingRect methods
This commit is contained in:
parent
48bd90004f
commit
222492c912
|
@ -373,6 +373,10 @@ QRectF QGIView::customChildrenBoundingRect() {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QRectF QGIView::boundingRect() const
|
||||||
|
{
|
||||||
|
return m_border->rect().adjusted(-2.,-2.,2.,2.); //allow for border line width //TODO: fiddle brect if border off?
|
||||||
|
}
|
||||||
QColor QGIView::getNormalColor()
|
QColor QGIView::getNormalColor()
|
||||||
{
|
{
|
||||||
Base::Reference<ParameterGrp> hGrp = getParmGroupCol();
|
Base::Reference<ParameterGrp> hGrp = getParmGroupCol();
|
||||||
|
|
|
@ -74,6 +74,7 @@ public:
|
||||||
virtual void toggleCache(bool state);
|
virtual void toggleCache(bool state);
|
||||||
virtual void updateView(bool update = false);
|
virtual void updateView(bool update = false);
|
||||||
virtual void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0 );
|
virtual void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0 );
|
||||||
|
virtual QRectF boundingRect() const override;
|
||||||
//virtual QPainterPath shape(void) const;
|
//virtual QPainterPath shape(void) const;
|
||||||
|
|
||||||
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent * event);
|
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent * event);
|
||||||
|
|
|
@ -163,8 +163,3 @@ void QGIViewAnnotation::drawAnnotation()
|
||||||
m_textItem->setPos(0.,0.);
|
m_textItem->setPos(0.,0.);
|
||||||
}
|
}
|
||||||
|
|
||||||
QRectF QGIViewAnnotation::boundingRect() const
|
|
||||||
{
|
|
||||||
return childrenBoundingRect();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,6 @@ public:
|
||||||
void setViewAnnoFeature(TechDraw::DrawViewAnnotation *obj);
|
void setViewAnnoFeature(TechDraw::DrawViewAnnotation *obj);
|
||||||
|
|
||||||
virtual void draw() override;
|
virtual void draw() override;
|
||||||
virtual QRectF boundingRect() const override;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void drawAnnotation();
|
void drawAnnotation();
|
||||||
|
|
|
@ -187,8 +187,3 @@ QGIView* QGIViewClip::getQGIVByName(std::string name) //should probably be meth
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
QRectF QGIViewClip::boundingRect() const
|
|
||||||
{
|
|
||||||
return childrenBoundingRect();
|
|
||||||
}
|
|
||||||
|
|
|
@ -46,7 +46,6 @@ public:
|
||||||
virtual void updateView(bool update = false) override;
|
virtual void updateView(bool update = false) override;
|
||||||
|
|
||||||
virtual void draw() override;
|
virtual void draw() override;
|
||||||
virtual QRectF boundingRect() const override;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void drawClip();
|
void drawClip();
|
||||||
|
|
|
@ -575,12 +575,6 @@ TechDraw::DrawHatch* QGIViewPart::faceIsHatched(int i,std::vector<TechDraw::Draw
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
QRectF QGIViewPart::boundingRect() const
|
|
||||||
{
|
|
||||||
//return childrenBoundingRect().adjusted(-2.,-2.,2.,6.); //just a bit bigger than the children need
|
|
||||||
return childrenBoundingRect();
|
|
||||||
}
|
|
||||||
|
|
||||||
void QGIViewPart::dumpPath(const char* text,QPainterPath path)
|
void QGIViewPart::dumpPath(const char* text,QPainterPath path)
|
||||||
{
|
{
|
||||||
QPainterPath::Element elem;
|
QPainterPath::Element elem;
|
||||||
|
|
|
@ -58,7 +58,6 @@ public:
|
||||||
void tidy();
|
void tidy();
|
||||||
|
|
||||||
virtual void draw() override;
|
virtual void draw() override;
|
||||||
virtual QRectF boundingRect() const override;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/// Helper for pathArc()
|
/// Helper for pathArc()
|
||||||
|
|
|
@ -139,7 +139,3 @@ void QGIViewSymbol::symbolToSvg(QString qs)
|
||||||
m_svgItem->setPos(0.,0.);
|
m_svgItem->setPos(0.,0.);
|
||||||
}
|
}
|
||||||
|
|
||||||
QRectF QGIViewSymbol::boundingRect() const
|
|
||||||
{
|
|
||||||
return childrenBoundingRect();
|
|
||||||
}
|
|
||||||
|
|
|
@ -54,7 +54,6 @@ public:
|
||||||
void setViewSymbolFeature(TechDraw::DrawViewSymbol *obj);
|
void setViewSymbolFeature(TechDraw::DrawViewSymbol *obj);
|
||||||
|
|
||||||
virtual void draw() override;
|
virtual void draw() override;
|
||||||
virtual QRectF boundingRect() const override;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void drawSvg();
|
virtual void drawSvg();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user