mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 16:50:53 +01:00
fix deprecated warning QSet<T>::toList() Use values() instead.
warning: ‘QList<T> QSet<T>::toList() const [with T = Conductor*]’ is deprecated: Use values() instead. [-Wdeprecated-declarations] QT_VERSION 5.15.0 GCC 64bit
This commit is contained in:
committed by
Laurent Trinques
parent
7948e2b1d3
commit
362509cb38
@@ -612,7 +612,7 @@ void Terminal::mouseReleaseEvent(QGraphicsSceneMouseEvent *e)
|
||||
|
||||
if (use_properties)
|
||||
{
|
||||
Conductor *other = conductors_list.toList().first();
|
||||
Conductor *other = conductors_list.values().first();
|
||||
new_conductor->rSequenceNum() = other->sequenceNum();
|
||||
new_conductor->setProperties(others_properties);
|
||||
}
|
||||
@@ -626,7 +626,7 @@ void Terminal::mouseReleaseEvent(QGraphicsSceneMouseEvent *e)
|
||||
diagram() -> undoStack().push(undo);
|
||||
if (use_properties)
|
||||
{
|
||||
Conductor *other = conductors_list.toList().first();
|
||||
Conductor *other = conductors_list.values().first();
|
||||
new_conductor->setProperties(other->properties());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user