TechDrawGui::QGCustomSvg Class Reference

#include <QGCustomSvg.h>

Public Types

enum  { Type = QGraphicsItem::UserType + 131 }
 

Public Member Functions

virtual void centerAt (double cX, double cY)
 
virtual void centerAt (QPointF centerPos)
 
virtual bool load (QByteArray *svgString)
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override
 
 QGCustomSvg (void)
 
int type () const override
 
 ~QGCustomSvg ()
 

Protected Attributes

QSvgRenderer * m_svgRender
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Type 

Constructor & Destructor Documentation

◆ QGCustomSvg()

QGCustomSvg::QGCustomSvg ( void  )
explicit

References m_svgRender.

◆ ~QGCustomSvg()

QGCustomSvg::~QGCustomSvg ( )

References m_svgRender.

Member Function Documentation

◆ centerAt() [1/2]

void QGCustomSvg::centerAt ( double  cX,
double  cY 
)
virtual

◆ centerAt() [2/2]

void QGCustomSvg::centerAt ( QPointF  centerPos)
virtual

◆ load()

◆ paint()

void QGCustomSvg::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget widget = nullptr 
)
overridevirtual

◆ type()

int TechDrawGui::QGCustomSvg::type ( ) const
override

Member Data Documentation

◆ m_svgRender

QSvgRenderer* TechDrawGui::QGCustomSvg::m_svgRender
protected

Referenced by load(), QGCustomSvg(), and ~QGCustomSvg().


The documentation for this class was generated from the following files: