mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 16:50:53 +01:00
cross ref item: don't show postion of element 'power'.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2959 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -88,8 +88,8 @@ void CrossRefItem::updateLabel() {
|
||||
|
||||
//draw the cross
|
||||
QRectF br = boundingRect();
|
||||
qp.drawLine(br.width()/2, 0, br.width()/2, br.height() - text_rect_.height()); //vertical line
|
||||
qp.drawLine(br.width()/2-25, header, br.width()/2+25, header); //horizontal line
|
||||
qp.drawLine(br.width()/2, 0, br.width()/2, br.height() - text_rect_.height()); //vertical line
|
||||
qp.drawLine(br.width()/2-(crossWidth/2), header, br.width()/2+(crossWidth/2), header); //horizontal line
|
||||
|
||||
//draw the symbolic NO
|
||||
qreal xoffset = br.width()/2 - 25;
|
||||
@@ -277,6 +277,7 @@ void CrossRefItem::fillCrossRef(QPainter &painter) {
|
||||
|
||||
//find each no and nc of connected element to element_
|
||||
foreach (Element *elmt, element_->linkedElements()) {
|
||||
if (elmt->kindInformations()["type"].toString() == "power") continue;
|
||||
QString state = elmt->kindInformations()["state"].toString();
|
||||
if (state == "NO") NO_list << elmt;
|
||||
else if (state == "NC") NC_list << elmt;
|
||||
|
||||
Reference in New Issue
Block a user