diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2019-08-01 11:56:11 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2019-08-01 10:03:25 +0000 |
commit | 1b5e97ee6d9368ed27519d26bb9adcff64d8adb1 (patch) | |
tree | ea364ce9faf8c3bd5a6b5af26a773a9a03f72bf7 | |
parent | a2adfcd59093ac0aabad2878c719f1705df93020 (diff) | |
download | qtwayland-1b5e97ee6d9368ed27519d26bb9adcff64d8adb1.tar.gz |
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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/wayland/qwindow-compositor/compositor.cpp b/examples/wayland/qwindow-compositor/compositor.cpp index 485f1650..220ea3d7 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); } } |