Exemplo n.º 1
0
void XmlLoader::readPointPort(QDomElement const &pointPort)
{
    QPointF point = readXandY(pointPort);
    PointPort* item = new PointPort(point.x(), point.y(), NULL);
    item->setListScalePoint(mListScalePoint);
    mScene->addItem(item);
    mScene->setZValue(item);
}
Exemplo n.º 2
0
PointPort::PointPort(PointPort const &other)
	:Item(), mPointImpl()
{
	mNeedScalingRect = other.mNeedScalingRect ;
	mPen = other.mPen;
	mBrush = other.mBrush;
	mDomElementType = portType;
	mX1 = other.mX1;
	mX2 = other.mX2;
	mY1 = other.mY1;
	mY2 = other.mY2;
	mRadius = other.mRadius;
	mListScalePoint = other.mListScalePoint;
	mType = other.mType;
	setPos(other.x(), other.y());
}
Exemplo n.º 3
0
PointPort::PointPort(const PointPort &other)
	:Item(), mPointImpl()
{
	mNeedScalingRect = other.mNeedScalingRect ;
	setPen(other.pen());
	setBrush(other.brush());
	mDomElementType = portType;
	setX1(other.x1());
	setX2(other.x2());
	setY1(other.y1());
	setY2(other.y2());
	mRadius = other.mRadius;
	mListScalePoint = other.mListScalePoint;
	mType = other.mType;
	setPos(other.x(), other.y());
}