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