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