mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +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
@@ -281,7 +281,7 @@ void DeleteQGraphicsItemCommand::redo()
|
||||
if (m_diagram -> defaultConductorProperties.m_one_text_per_folio && c -> textItem() -> isVisible())
|
||||
{
|
||||
QList <Conductor *> conductor_list;
|
||||
conductor_list << c -> relatedPotentialConductors(false).toList();
|
||||
conductor_list << c -> relatedPotentialConductors(false).values();
|
||||
if (conductor_list.count())
|
||||
conductor_list.first() -> calculateTextItemPosition();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user