21 lines
489 B
C++
21 lines
489 B
C++
#ifndef ELECTRICSVGITEMTRIANGLE_H
|
|
#define ELECTRICSVGITEMTRIANGLE_H
|
|
|
|
#include "electricSvgItem.h"
|
|
|
|
class ElectricSvgItemTriangle :public ElectricSvgItem
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
ElectricSvgItemTriangle(const QRect &rect, QGraphicsItem *parent = 0);
|
|
virtual ~ElectricSvgItemTriangle();
|
|
protected:
|
|
virtual void paint(QPainter*, const QStyleOptionGraphicsItem*, QWidget*);
|
|
private:
|
|
virtual void updateHandles();
|
|
double m_dTopRatioX;
|
|
double m_dBottomRatioX;
|
|
};
|
|
|
|
#endif
|