DiagramDesigner/diagramCavas/source/graphicsItem/electricSvgItemDTEDS.cpp

44 lines
934 B
C++

#include "graphicsItem/electricSvgItemDTEDS.h"
#include "global.h"
#include <QPainter>
#include <QStyleOption>
#include <QGraphicsScene>
#include <QGraphicsView>
ElectricSvgItemDTEDS::ElectricSvgItemDTEDS(const QRect &rect, QGraphicsItem *parent)
: ElectricSvgItem(rect,parent)
{
inital();
}
ElectricSvgItemDTEDS::ElectricSvgItemDTEDS(const ElectricSvgItemDTEDS& obj)
: ElectricSvgItem(obj)
{
inital();
}
ElectricSvgItemDTEDS::~ElectricSvgItemDTEDS()
{
}
ElectricSvgItemDTEDS* ElectricSvgItemDTEDS::clone() const
{
return new ElectricSvgItemDTEDS(*this);
}
void ElectricSvgItemDTEDS::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget)
{
ElectricSvgItem::paint(painter,option,widget);
}
void ElectricSvgItemDTEDS::inital()
{
setHandleIfShow(H_textCaption,false);
setHandleVisible(false);
setFunctionHandleIfShow(false);
setFunctionHandleEnaable(false);
}