summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2019-08-01 11:56:11 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2019-08-01 10:03:25 +0000
commit1b5e97ee6d9368ed27519d26bb9adcff64d8adb1 (patch)
treeea364ce9faf8c3bd5a6b5af26a773a9a03f72bf7
parenta2adfcd59093ac0aabad2878c719f1705df93020 (diff)
Fix build with Qt 6 and strict API deprecations
QList's swap(int i, int j) is deprecated in favor of swapItemsAt() and when building with QT_VERSION == 6 it's removed from the API. Change-Id: I5513d4d879a85369040864cfc9c058f0f3665648 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
-rw-r--r--examples/wayland/qwindow-compositor/compositor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/wayland/qwindow-compositor/compositor.cpp b/examples/wayland/qwindow-compositor/compositor.cpp
index 485f16504..220ea3d74 100644
--- a/examples/wayland/qwindow-compositor/compositor.cpp
+++ b/examples/wayland/qwindow-compositor/compositor.cpp
@@ -545,6 +545,6 @@ void Compositor::raise(View *view)
int source = endPos + 1 + i;
int dest = startPos + i;
for (int j = source; j > dest; j--)
- m_views.swap(j, j-1);
+ m_views.swapItemsAt(j, j-1);
}
}