mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-08-13 10:04:13 +02:00
Update old fashioned SIGNAL/SLOT to point-to-member. Only simple and clear cases.
This commit is contained in:
@@ -113,10 +113,8 @@ void CrossRefItem::setUpConnection()
|
||||
set=true;
|
||||
else if(m_properties.snapTo() == XRefProperties::Bottom && !m_text && !m_group) //Snap to bottom of element and parent is the element itself
|
||||
{
|
||||
m_update_connection << connect(m_element, SIGNAL(yChanged()),
|
||||
this, SLOT(autoPos()));
|
||||
m_update_connection << connect(m_element, SIGNAL(rotationChanged()),
|
||||
this, SLOT(autoPos()));
|
||||
m_update_connection << connect(m_element, &Element::yChanged, this, &CrossRefItem::autoPos);
|
||||
m_update_connection << connect(m_element, &Element::rotationChanged, this, &CrossRefItem::autoPos);
|
||||
set=true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user