Cross ref item : minor improvement

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3402 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-10-26 13:12:44 +00:00
parent c47a39d54e
commit 933e8cb86f

View File

@@ -145,11 +145,11 @@ void CrossRefItem::updateProperties() {
if (m_properties.snapTo() != xrp.snapTo()) { if (m_properties.snapTo() != xrp.snapTo()) {
if (xrp.snapTo() == XRefProperties::Bottom) { if (xrp.snapTo() == XRefProperties::Bottom) {
setParentItem(m_element); setParentItem(m_element);
connect(m_element, SIGNAL(positionChange(QPointF)), this, SLOT(autoPos())); connect(m_element, SIGNAL(yChanged()), this, SLOT(autoPos()));
connect(m_element, SIGNAL(rotationChanged()), this, SLOT(autoPos())); connect(m_element, SIGNAL(rotationChanged()), this, SLOT(autoPos()));
} else { } else {
setTextParent(); setTextParent();
disconnect(m_element, SIGNAL(positionChange(QPointF)), this, SLOT(autoPos())); disconnect(m_element, SIGNAL(yChanged()), this, SLOT(autoPos()));
disconnect(m_element, SIGNAL(rotationChanged()), this, SLOT(autoPos())); disconnect(m_element, SIGNAL(rotationChanged()), this, SLOT(autoPos()));
} }
} }
@@ -169,7 +169,7 @@ void CrossRefItem::updateLabel() {
QPainter qp; QPainter qp;
qp.begin(&m_drawing); qp.begin(&m_drawing);
QPen pen_; QPen pen_;
pen_.setWidthF(0.2); pen_.setWidthF(0.5);
qp.setPen(pen_); qp.setPen(pen_);
qp.setFont(QETApp::diagramTextsFont(5)); qp.setFont(QETApp::diagramTextsFont(5));