43 lines
910 B
C++
43 lines
910 B
C++
#include "graphicsItem/electricSvgItemFES.h"
|
|
#include "global.h"
|
|
|
|
#include <QPainter>
|
|
#include <QStyleOption>
|
|
#include <QGraphicsScene>
|
|
#include <QGraphicsView>
|
|
|
|
ElectricSvgItemFES::ElectricSvgItemFES(const QRect &rect, QGraphicsItem *parent)
|
|
: ElectricSvgItem(rect,parent)
|
|
{
|
|
initial();
|
|
}
|
|
|
|
ElectricSvgItemFES::ElectricSvgItemFES(const ElectricSvgItemFES& obj)
|
|
: ElectricSvgItem(obj)
|
|
{
|
|
initial();
|
|
}
|
|
|
|
ElectricSvgItemFES::~ElectricSvgItemFES()
|
|
{
|
|
|
|
}
|
|
|
|
ElectricSvgItemFES* ElectricSvgItemFES::clone() const
|
|
{
|
|
return new ElectricSvgItemFES(*this);
|
|
}
|
|
|
|
void ElectricSvgItemFES::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget)
|
|
{
|
|
ElectricSvgItem::paint(painter,option,widget);
|
|
}
|
|
|
|
void ElectricSvgItemFES::initial()
|
|
{
|
|
setHandleIfShow(H_textCaption,false);
|
|
setHandleVisible(false);
|
|
setFunctionHandleIfShow(false);
|
|
setFunctionHandleEnaable(false);
|
|
}
|