예제 #1
0
파일: xmlLoader.cpp 프로젝트: nfrey/qreal
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);
}
예제 #2
0
파일: pointPort.cpp 프로젝트: ASabina/qreal
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());
}
예제 #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());
}