mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
Fixed a bug with many slaves of type Other, whose XREFs overlap in list
mode
This commit is contained in:
@@ -800,6 +800,11 @@ QRectF CrossRefItem::drawContact(QPainter &painter, int flags, Element *elmt)
|
||||
painter.drawArc(rr, 0, 180*16);
|
||||
}
|
||||
}
|
||||
else if (flags &Other)
|
||||
{
|
||||
bounding_rect = QRectF(0, offset, 24, 20);
|
||||
}
|
||||
|
||||
|
||||
//Draw position text
|
||||
QRectF text_rect = painter.boundingRect(
|
||||
@@ -820,6 +825,7 @@ QRectF CrossRefItem::drawContact(QPainter &painter, int flags, Element *elmt)
|
||||
|
||||
//a switch contact take place of two normal contact
|
||||
m_drawed_contacts += 2;
|
||||
|
||||
}else if(flags &Other){
|
||||
//Draw position text
|
||||
QRectF text_rect = painter.boundingRect(
|
||||
@@ -837,6 +843,8 @@ QRectF CrossRefItem::drawContact(QPainter &painter, int flags, Element *elmt)
|
||||
else {
|
||||
m_hovered_contacts_map.insert(elmt, bounding_rect);
|
||||
}
|
||||
m_drawed_contacts += 1;
|
||||
return bounding_rect;
|
||||
}
|
||||
|
||||
return bounding_rect;
|
||||
|
||||
Reference in New Issue
Block a user