forked from qt-creator/qt-creator
QmlDesigner: Fix warning in tests
Change-Id: I6339ec810d3dfc1c58e46e06d1cce181c0608289 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -196,7 +196,7 @@ public:
|
|||||||
QItemSelection itemSelection(std::initializer_list<QPair<int, int>> items) const
|
QItemSelection itemSelection(std::initializer_list<QPair<int, int>> items) const
|
||||||
{
|
{
|
||||||
QItemSelection selection;
|
QItemSelection selection;
|
||||||
for (const auto [row, column] : items) {
|
for (const auto &[row, column] : items) {
|
||||||
QModelIndex idx = index(row, column);
|
QModelIndex idx = index(row, column);
|
||||||
selection.select(idx, idx);
|
selection.select(idx, idx);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user