Fixed narrowing warning qsizetype -> int

This commit is contained in:
Magnus Hellströmer
2024-09-09 01:18:13 +02:00
parent e8f8304b60
commit 3c4a0ed2b4
2 changed files with 2 additions and 2 deletions

View File

@@ -746,7 +746,7 @@ void ElementScene::addItems(QVector<QGraphicsItem *> items)
*/
void ElementScene::removeItems(QVector<QGraphicsItem *> items)
{
const int previous_selected_count{selectedItems().size()};
const qsizetype previous_selected_count{selectedItems().size()};
//block signal to avoid multiple emit of selection changed,
//we emit this signal only once at the end of this function.