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
@@ -718,7 +718,7 @@ TitleBlockCell *MergeCellsCommand::getBottomRightCell(const TitleBlockTemplateCe
|
||||
// next, we get its logical cells: the painted one and the spanned ones (if any)
|
||||
QSet<TitleBlockCell *> logical_cells = bottom_right_cell -> cells();
|
||||
if (logical_cells.isEmpty()) return(nullptr);
|
||||
if (logical_cells.count() == 1) return(logical_cells.toList().first());
|
||||
if (logical_cells.count() == 1) return(logical_cells.values().first());
|
||||
|
||||
// we then look for the bottom right logical cell
|
||||
int max_num_row = -1, max_num_col = -1;
|
||||
|
||||
@@ -422,7 +422,7 @@ void TitleBlockTemplateView::drawBackground(QPainter *painter, const QRectF &rec
|
||||
@return the selected logical cells, not including the spanned ones.
|
||||
*/
|
||||
QList<TitleBlockCell *> TitleBlockTemplateView::selectedCells() const {
|
||||
return(selectedCellsSet().cells(false).toList());
|
||||
return(selectedCellsSet().cells(false).values());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user