diff --git a/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell-v5/qwaylandxdgshellv5_p.h b/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell-v5/qwaylandxdgshellv5_p.h index 2b0a59f1749..d0bdc8bc688 100644 --- a/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell-v5/qwaylandxdgshellv5_p.h +++ b/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell-v5/qwaylandxdgshellv5_p.h @@ -54,7 +54,7 @@ #include "qwayland-xdg-shell-unstable-v5_p.h" #include -#include +#include #include #include @@ -82,7 +82,7 @@ public: private: void xdg_shell_ping(uint32_t serial) override; - QVector m_popups; + QList m_popups; uint m_popupSerial = 0; }; diff --git a/src/plugins/platforms/wayland/qwaylanddisplay_p.h b/src/plugins/platforms/wayland/qwaylanddisplay_p.h index 83a56556e33..12e3f413eed 100644 --- a/src/plugins/platforms/wayland/qwaylanddisplay_p.h +++ b/src/plugins/platforms/wayland/qwaylanddisplay_p.h @@ -51,10 +51,10 @@ // We mean it. // +#include #include -#include #include -#include +#include #include #include @@ -280,7 +280,7 @@ private: QWaylandInputDevice *mLastInputDevice = nullptr; QPointer mLastInputWindow; QPointer mLastKeyboardFocus; - QVector mActiveWindows; + QList mActiveWindows; struct wl_callback *mSyncCallback = nullptr; static const wl_callback_listener syncCallbackListener; diff --git a/src/plugins/platforms/wayland/qwaylandinputcontext_p.h b/src/plugins/platforms/wayland/qwaylandinputcontext_p.h index 10132dfe19b..d3bf5a78562 100644 --- a/src/plugins/platforms/wayland/qwaylandinputcontext_p.h +++ b/src/plugins/platforms/wayland/qwaylandinputcontext_p.h @@ -54,10 +54,10 @@ #include +#include #include #include #include -#include #include #include @@ -113,7 +113,7 @@ private: QWaylandDisplay *m_display = nullptr; QWaylandInputMethodEventBuilder m_builder; - QVector m_modifiersMap; + QList m_modifiersMap; uint32_t m_serial = 0; struct ::wl_surface *m_surface = nullptr; diff --git a/src/plugins/platforms/wayland/qwaylandshm_p.h b/src/plugins/platforms/wayland/qwaylandshm_p.h index 639effa16d8..bf2bbce4ecf 100644 --- a/src/plugins/platforms/wayland/qwaylandshm_p.h +++ b/src/plugins/platforms/wayland/qwaylandshm_p.h @@ -51,8 +51,8 @@ // We mean it. // -#include #include +#include #include #include @@ -81,7 +81,7 @@ protected: void shm_format(uint32_t format) override; private: - QVector m_formats; + QList m_formats; }; diff --git a/src/plugins/platforms/wayland/qwaylandshmwindow.cpp b/src/plugins/platforms/wayland/qwaylandshmwindow.cpp index e305d028d56..9214665e47d 100644 --- a/src/plugins/platforms/wayland/qwaylandshmwindow.cpp +++ b/src/plugins/platforms/wayland/qwaylandshmwindow.cpp @@ -41,8 +41,6 @@ #include "qwaylandbuffer_p.h" -#include - #include QT_BEGIN_NAMESPACE diff --git a/src/plugins/platforms/wayland/qwaylandsurface_p.h b/src/plugins/platforms/wayland/qwaylandsurface_p.h index 541010934ad..930a137ac84 100644 --- a/src/plugins/platforms/wayland/qwaylandsurface_p.h +++ b/src/plugins/platforms/wayland/qwaylandsurface_p.h @@ -84,7 +84,7 @@ protected: void surface_enter(struct ::wl_output *output) override; void surface_leave(struct ::wl_output *output) override; - QVector m_screens; //As seen by wl_surface.enter/leave events. Chronological order. + QList m_screens; //As seen by wl_surface.enter/leave events. Chronological order. QWaylandWindow *m_window = nullptr; friend class QWaylandWindow; // TODO: shouldn't need to be friends diff --git a/src/plugins/platforms/wayland/qwaylandtabletv2_p.h b/src/plugins/platforms/wayland/qwaylandtabletv2_p.h index b4daaf5dbbb..36dd4268983 100644 --- a/src/plugins/platforms/wayland/qwaylandtabletv2_p.h +++ b/src/plugins/platforms/wayland/qwaylandtabletv2_p.h @@ -55,10 +55,10 @@ #include -#include #include #include #include +#include QT_BEGIN_NAMESPACE @@ -93,9 +93,9 @@ protected: void zwp_tablet_seat_v2_pad_added(struct ::zwp_tablet_pad_v2 *id) override; private: - QVector m_tablets; - QVector m_tools; - QVector m_pads; + QList m_tablets; + QList m_tools; + QList m_pads; }; class Q_WAYLAND_CLIENT_EXPORT QWaylandTabletV2 : public QObject, public QtWayland::zwp_tablet_v2 diff --git a/src/plugins/platforms/wayland/qwaylandwindow.cpp b/src/plugins/platforms/wayland/qwaylandwindow.cpp index 7a186b326e1..fa2a5b7409c 100644 --- a/src/plugins/platforms/wayland/qwaylandwindow.cpp +++ b/src/plugins/platforms/wayland/qwaylandwindow.cpp @@ -386,7 +386,7 @@ void QWaylandWindow::sendExposeEvent(const QRect &rect) } -static QVector> activePopups; +static QList> activePopups; void QWaylandWindow::closePopups(QWaylandWindow *parent) { diff --git a/src/plugins/platforms/wayland/qwaylandwindow_p.h b/src/plugins/platforms/wayland/qwaylandwindow_p.h index be06e435fe5..93015dece6e 100644 --- a/src/plugins/platforms/wayland/qwaylandwindow_p.h +++ b/src/plugins/platforms/wayland/qwaylandwindow_p.h @@ -217,7 +217,7 @@ protected: QScopedPointer mSurface; QWaylandShellSurface *mShellSurface = nullptr; QWaylandSubSurface *mSubSurfaceWindow = nullptr; - QVector mChildren; + QList mChildren; QWaylandAbstractDecoration *mWindowDecoration = nullptr; bool mMouseEventsInContentArea = false; diff --git a/src/plugins/platforms/wayland/shared/qwaylandsharedmemoryformathelper_p.h b/src/plugins/platforms/wayland/shared/qwaylandsharedmemoryformathelper_p.h index 72cc8401c26..ac4428dfd5f 100644 --- a/src/plugins/platforms/wayland/shared/qwaylandsharedmemoryformathelper_p.h +++ b/src/plugins/platforms/wayland/shared/qwaylandsharedmemoryformathelper_p.h @@ -71,7 +71,7 @@ public: default: return QImage::Format_Invalid; } } - static inline QVector supportedWaylandFormats(); + static inline QList supportedWaylandFormats(); private: //IMPLEMENTATION (which has to be inline in the header because of the include trick) @@ -127,9 +127,9 @@ wl_shm_format QWaylandSharedMemoryFormatHelper::fromQImageFormat(QImage::Format return array.data[format]; } -QVector QWaylandSharedMemoryFormatHelper::supportedWaylandFormats() +QList QWaylandSharedMemoryFormatHelper::supportedWaylandFormats() { - QVector retFormats; + QList retFormats; Array array = getData(); for (size_t i = 0; i < array.size; i++) { if (int(array.data[i]) != INT_MIN diff --git a/src/tools/qtwaylandscanner/qtwaylandscanner.cpp b/src/tools/qtwaylandscanner/qtwaylandscanner.cpp index 3cecb5bcfbe..130a71554c6 100644 --- a/src/tools/qtwaylandscanner/qtwaylandscanner.cpp +++ b/src/tools/qtwaylandscanner/qtwaylandscanner.cpp @@ -123,13 +123,13 @@ private: QByteArray m_scannerName; QByteArray m_headerPath; QByteArray m_prefix; - QVector m_includes; + QList m_includes; QXmlStreamReader *m_xml = nullptr; }; bool Scanner::parseArguments(int argc, char **argv) { - QVector args; + QList args; args.reserve(argc); for (int i = 0; i < argc; ++i) args << QByteArray(argv[i]); diff --git a/tests/auto/wayland/inputcontext/tst_inputcontext.cpp b/tests/auto/wayland/inputcontext/tst_inputcontext.cpp index 1f07eb5203a..d421b0d2202 100644 --- a/tests/auto/wayland/inputcontext/tst_inputcontext.cpp +++ b/tests/auto/wayland/inputcontext/tst_inputcontext.cpp @@ -85,7 +85,7 @@ QByteArray tst_inputcontext::inputContextName() const void tst_inputcontext::ensureTextInputPresentOnCompositor() { exec([&] { - QVector extensions = getAll(); + QList extensions = getAll(); if (extensions.length() > 1) QFAIL("TextInputManager is a singleton, hence there should not be more then one object returned"); if (extensions.length() == 0) @@ -96,7 +96,7 @@ void tst_inputcontext::ensureTextInputPresentOnCompositor() void tst_inputcontext::ensureTextInputNotPresentOnCompositor() { exec([&] { - QVector extensions = getAll(); + QList extensions = getAll(); if (extensions.length() > 1) QFAIL("TextInputManager is a singleton, hence there should not be more then one object returned"); if (extensions.length() == 1) diff --git a/tests/auto/wayland/primaryselectionv1/tst_primaryselectionv1.cpp b/tests/auto/wayland/primaryselectionv1/tst_primaryselectionv1.cpp index 660d1f83e11..f7a63d13ec6 100644 --- a/tests/auto/wayland/primaryselectionv1/tst_primaryselectionv1.cpp +++ b/tests/auto/wayland/primaryselectionv1/tst_primaryselectionv1.cpp @@ -140,7 +140,7 @@ public: PrimarySelectionDeviceManagerV1 *m_manager = nullptr; Seat *m_seat = nullptr; - QVector m_sentSelectionOffers; + QList m_sentSelectionOffers; PrimarySelectionSourceV1 *m_selectionSource = nullptr; uint m_serial = 0; @@ -194,7 +194,7 @@ public: int m_version = 1; // TODO: Remove on libwayland upgrade QMap m_devices; - QVector m_sources; + QList m_sources; protected: void zwp_primary_selection_device_manager_v1_destroy(Resource *resource) override { @@ -459,7 +459,7 @@ void tst_primaryselectionv1::copy() window.show(); QCOMPOSITOR_TRY_VERIFY(xdgSurface() && xdgSurface()->m_committedConfigureSerial); - QVector mouseSerials; + QList mouseSerials; exec([&] { auto *surface = xdgSurface()->m_surface; keyboard()->sendEnter(surface); // Need to set keyboard focus according to protocol diff --git a/tests/auto/wayland/seatv4/tst_seatv4.cpp b/tests/auto/wayland/seatv4/tst_seatv4.cpp index 46d91e02876..1c1e7a02b5f 100644 --- a/tests/auto/wayland/seatv4/tst_seatv4.cpp +++ b/tests/auto/wayland/seatv4/tst_seatv4.cpp @@ -292,7 +292,7 @@ void tst_seatv4::simpleAxis() QPoint pixelDelta; QPoint angleDelta; // eights of a degree, positive is upwards, left }; - QVector m_events; + QList m_events; }; WheelWindow window; @@ -351,7 +351,7 @@ static bool supportsCursorSize(uint size, wl_shm *shm) return false; } -static bool supportsCursorSizes(const QVector &sizes) +static bool supportsCursorSizes(const QList &sizes) { auto *waylandIntegration = static_cast(QGuiApplicationPrivate::platformIntegration()); wl_shm *shm = waylandIntegration->display()->shm()->object(); diff --git a/tests/auto/wayland/seatv5/tst_seatv5.cpp b/tests/auto/wayland/seatv5/tst_seatv5.cpp index 081a0aa7016..2f7e70dc936 100644 --- a/tests/auto/wayland/seatv5/tst_seatv5.cpp +++ b/tests/auto/wayland/seatv5/tst_seatv5.cpp @@ -161,7 +161,7 @@ public: QPoint angleDelta; // eights of a degree, positive is upwards, left Qt::MouseEventSource source{}; }; - QVector m_events; + QList m_events; }; void tst_seatv5::simpleAxis_data() @@ -401,7 +401,7 @@ public: Qt::TouchPointStates touchPointStates{}; QList touchPoints; }; - QVector m_events; + QList m_events; }; void tst_seatv5::singleTap() diff --git a/tests/auto/wayland/shared/corecompositor.h b/tests/auto/wayland/shared/corecompositor.h index 254465ee6ec..1b43fd70360 100644 --- a/tests/auto/wayland/shared/corecompositor.h +++ b/tests/auto/wayland/shared/corecompositor.h @@ -145,10 +145,10 @@ public: * \brief Returns all globals with the given type, if any */ template - QVector getAll() + QList getAll() { warnIfNotLockedByThread(Q_FUNC_INFO); - QVector matching; + QList matching; for (auto *global : qAsConst(m_globals)) { if (auto *casted = qobject_cast(global)) matching.append(casted); @@ -199,7 +199,7 @@ protected: QByteArray m_socketName; wl_event_loop *m_eventLoop = nullptr; bool m_running = true; - QVector m_globals; + QList m_globals; QElapsedTimer m_timer; private: diff --git a/tests/auto/wayland/shared/coreprotocol.cpp b/tests/auto/wayland/shared/coreprotocol.cpp index 0d98852160d..c4181cb9445 100644 --- a/tests/auto/wayland/shared/coreprotocol.cpp +++ b/tests/auto/wayland/shared/coreprotocol.cpp @@ -485,7 +485,7 @@ uint Keyboard::sendKey(wl_client *client, uint key, uint state) } // Shm implementation -Shm::Shm(CoreCompositor *compositor, QVector formats, int version) +Shm::Shm(CoreCompositor *compositor, QList formats, int version) : QtWaylandServer::wl_shm(compositor->m_display, version) , m_compositor(compositor) , m_formats(formats) diff --git a/tests/auto/wayland/shared/coreprotocol.h b/tests/auto/wayland/shared/coreprotocol.h index 8d5e2d66d31..8bc8deece25 100644 --- a/tests/auto/wayland/shared/coreprotocol.h +++ b/tests/auto/wayland/shared/coreprotocol.h @@ -120,9 +120,9 @@ public: uint configureSerial = 0; int bufferScale = 1; } m_pending, m_committed; - QVector m_commits; - QVector m_waitingFrameCallbacks; - QVector m_outputs; + QList m_commits; + QList m_waitingFrameCallbacks; + QList m_outputs; SurfaceRole *m_role = nullptr; signals: @@ -149,7 +149,7 @@ public: {} bool isClean() override; QString dirtyMessage() override; - QVector m_surfaces; + QList m_surfaces; CoreCompositor *m_compositor = nullptr; signals: @@ -181,7 +181,7 @@ public: explicit SubCompositor(CoreCompositor *compositor, int version = 1) : QtWaylandServer::wl_subcompositor(compositor->m_display, version) {} - QVector m_subsurfaces; + QList m_subsurfaces; signals: void subsurfaceCreated(Subsurface *subsurface); @@ -270,13 +270,13 @@ public: CoreCompositor *m_compositor = nullptr; Pointer* m_pointer = nullptr; - QVector m_oldPointers; + QList m_oldPointers; Touch* m_touch = nullptr; - QVector m_oldTouchs; + QList m_oldTouchs; Keyboard* m_keyboard = nullptr; - QVector m_oldKeyboards; + QList m_oldKeyboards; uint m_capabilities = 0; @@ -313,7 +313,7 @@ public: void sendFrame(wl_client *client); Seat *m_seat = nullptr; - QVector m_enterSerials; + QList m_enterSerials; QPoint m_hotspot; signals: @@ -365,11 +365,11 @@ class Shm : public Global, public QtWaylandServer::wl_shm { Q_OBJECT public: - explicit Shm(CoreCompositor *compositor, QVector formats = {format_argb8888, format_xrgb8888, format_rgb888}, int version = 1); + explicit Shm(CoreCompositor *compositor, QList formats = {format_argb8888, format_xrgb8888, format_rgb888}, int version = 1); bool isClean() override; CoreCompositor *m_compositor = nullptr; - QVector m_pools; - const QVector m_formats; + QList m_pools; + const QList m_formats; protected: void shm_create_pool(Resource *resource, uint32_t id, int32_t fd, int32_t size) override; @@ -386,7 +386,7 @@ class ShmPool : QObject, public QtWaylandServer::wl_shm_pool public: explicit ShmPool(Shm *shm, wl_client *client, int id, int version = 1); Shm *m_shm = nullptr; - QVector m_buffers; + QList m_buffers; protected: void shm_pool_create_buffer(Resource *resource, uint32_t id, int32_t offset, int32_t width, int32_t height, int32_t stride, uint32_t format) override; diff --git a/tests/auto/wayland/shared/datadevice.h b/tests/auto/wayland/shared/datadevice.h index 98e780b2283..a8c30f8f2d9 100644 --- a/tests/auto/wayland/shared/datadevice.h +++ b/tests/auto/wayland/shared/datadevice.h @@ -71,7 +71,7 @@ public: DataDeviceManager *m_manager = nullptr; Seat *m_seat = nullptr; - QVector m_sentSelectionOffers; + QList m_sentSelectionOffers; protected: void data_device_release(Resource *resource) override diff --git a/tests/auto/wayland/shared/xdgshell.cpp b/tests/auto/wayland/shared/xdgshell.cpp index 72582f48d7f..79d5ea382ab 100644 --- a/tests/auto/wayland/shared/xdgshell.cpp +++ b/tests/auto/wayland/shared/xdgshell.cpp @@ -168,12 +168,12 @@ XdgToplevel::XdgToplevel(XdgSurface *xdgSurface, int id, int version) connect(surface(), &Surface::commit, this, [this] { m_committed = m_pending; }); } -void XdgToplevel::sendConfigure(const QSize &size, const QVector &states) +void XdgToplevel::sendConfigure(const QSize &size, const QList &states) { send_configure(size.width(), size.height(), toByteArray(states)); } -uint XdgToplevel::sendCompleteConfigure(const QSize &size, const QVector &states) +uint XdgToplevel::sendCompleteConfigure(const QSize &size, const QList &states) { sendConfigure(size, states); return m_xdgSurface->sendConfigure(); diff --git a/tests/auto/wayland/shared/xdgshell.h b/tests/auto/wayland/shared/xdgshell.h index 618babde73a..485da9d9f10 100644 --- a/tests/auto/wayland/shared/xdgshell.h +++ b/tests/auto/wayland/shared/xdgshell.h @@ -48,7 +48,7 @@ public: void send_ping(uint32_t) = delete; // It's a global, use resource specific instead bool isClean() override { return m_xdgSurfaces.empty(); } QString dirtyMessage() override { return m_xdgSurfaces.empty() ? "clean" : "remaining xdg surfaces"; } - QVector m_xdgSurfaces; + QList m_xdgSurfaces; XdgToplevel *toplevel(int i = 0); XdgPopup *popup(int i = 0); XdgPopup *m_topmostGrabbingPopup = nullptr; @@ -86,13 +86,13 @@ public: XdgWmBase *m_xdgWmBase = nullptr; Surface *m_surface = nullptr; bool m_configureSent = false; - QVector m_pendingConfigureSerials; + QList m_pendingConfigureSerials; uint m_ackedConfigureSerial = 0; uint m_committedConfigureSerial = 0; struct DoubleBufferedState { QRect windowGeometry = {0, 0, 0, 0}; } m_pending, m_committed; - QVector m_popups; + QList m_popups; public slots: void verifyConfigured() { QVERIFY(m_configureSent); } @@ -115,8 +115,8 @@ class XdgToplevel : public QObject, public QtWaylandServer::xdg_toplevel Q_OBJECT public: explicit XdgToplevel(XdgSurface *xdgSurface, int id, int version = 1); - void sendConfigure(const QSize &size = {0, 0}, const QVector &states = {}); - uint sendCompleteConfigure(const QSize &size = {0, 0}, const QVector &states = {}); + void sendConfigure(const QSize &size = {0, 0}, const QList &states = {}); + uint sendCompleteConfigure(const QSize &size = {0, 0}, const QList &states = {}); Surface *surface() { return m_xdgSurface->m_surface; } XdgSurface *m_xdgSurface = nullptr; diff --git a/tests/auto/wayland/shared_old/mockcompositor.cpp b/tests/auto/wayland/shared_old/mockcompositor.cpp index 9553076dd52..43b9ec839dc 100644 --- a/tests/auto/wayland/shared_old/mockcompositor.cpp +++ b/tests/auto/wayland/shared_old/mockcompositor.cpp @@ -199,7 +199,7 @@ void MockCompositor::sendIviSurfaceConfigure(const QSharedPointer toplevel, const QSize &size, const QVector &states) +void MockCompositor::sendXdgToplevelV6Configure(const QSharedPointer toplevel, const QSize &size, const QList &states) { Command command = makeCommand(Impl::Compositor::sendXdgToplevelV6Configure, m_compositor); command.parameters << QVariant::fromValue(toplevel); @@ -221,7 +221,7 @@ QSharedPointer MockCompositor::surface() QSharedPointer result; lock(); { - const QVector surfaces = m_compositor->surfaces(); + const QList surfaces = m_compositor->surfaces(); for (Impl::Surface *surface : surfaces) { // we don't want to mistake the cursor surface for a window surface if (surface->isMapped()) { @@ -415,12 +415,12 @@ void registerResource(wl_list *list, wl_resource *resource) wl_resource_add_destroy_listener(resource, listener); } -QVector Compositor::surfaces() const +QList Compositor::surfaces() const { return m_surfaces; } -QVector Compositor::outputs() const +QList Compositor::outputs() const { return m_outputs; } diff --git a/tests/auto/wayland/shared_old/mockcompositor.h b/tests/auto/wayland/shared_old/mockcompositor.h index 2433ac005da..3238039960a 100644 --- a/tests/auto/wayland/shared_old/mockcompositor.h +++ b/tests/auto/wayland/shared_old/mockcompositor.h @@ -38,11 +38,11 @@ #include #include +#include #include #include #include #include -#include #include class MockCompositor; @@ -74,8 +74,8 @@ public: uint32_t nextSerial(); uint32_t time() { return ++m_time; } - QVector surfaces() const; - QVector outputs() const; + QList surfaces() const; + QList outputs() const; IviApplication *iviApplication() const; XdgShellV6 *xdgShellV6() const; @@ -130,8 +130,8 @@ private: Keyboard *m_keyboard = nullptr; Touch *m_touch = nullptr; QScopedPointer m_data_device_manager; - QVector m_surfaces; - QVector m_outputs; + QList m_surfaces; + QList m_outputs; QScopedPointer m_iviApplication; QScopedPointer m_wlShell; QScopedPointer m_xdgShellV6; @@ -242,7 +242,7 @@ public: void sendShellSurfaceConfigure(const QSharedPointer surface, const QSize &size = QSize(0, 0)); void sendIviSurfaceConfigure(const QSharedPointer iviSurface, const QSize &size); void sendXdgToplevelV6Configure(const QSharedPointer toplevel, const QSize &size = QSize(0, 0), - const QVector &states = { ZXDG_TOPLEVEL_V6_STATE_ACTIVATED }); + const QList &states = { ZXDG_TOPLEVEL_V6_STATE_ACTIVATED }); void waitForStartDrag(); QSharedPointer surface(); diff --git a/tests/auto/wayland/shared_old/mockfullscreenshellv1.h b/tests/auto/wayland/shared_old/mockfullscreenshellv1.h index 819bbc186c7..c932d4f4d90 100644 --- a/tests/auto/wayland/shared_old/mockfullscreenshellv1.h +++ b/tests/auto/wayland/shared_old/mockfullscreenshellv1.h @@ -31,7 +31,7 @@ #include -#include +#include namespace Impl { @@ -43,14 +43,14 @@ class FullScreenShellV1 : public QtWaylandServer::zwp_fullscreen_shell_v1 public: explicit FullScreenShellV1(::wl_display *display) : zwp_fullscreen_shell_v1(display, 1) {} - QVector surfaces() const { return m_surfaces; } + QList surfaces() const { return m_surfaces; } void removeSurface(Surface *surface) { m_surfaces.removeOne(surface); } protected: void zwp_fullscreen_shell_v1_present_surface(Resource *resource, struct ::wl_resource *surface, uint32_t method, struct ::wl_resource *output) override; private: - QVector m_surfaces; + QList m_surfaces; }; } // namespace Impl diff --git a/tests/auto/wayland/shared_old/mockiviapplication.h b/tests/auto/wayland/shared_old/mockiviapplication.h index 4d65eeabaed..e2e3cb46563 100644 --- a/tests/auto/wayland/shared_old/mockiviapplication.h +++ b/tests/auto/wayland/shared_old/mockiviapplication.h @@ -31,8 +31,8 @@ #include +#include #include -#include class MockIviSurface; @@ -67,7 +67,7 @@ class IviApplication : public QtWaylandServer::ivi_application { public: explicit IviApplication(::wl_display *display) : ivi_application(display, 1) {} - QVector iviSurfaces() const { return m_iviSurfaces; } + QList iviSurfaces() const { return m_iviSurfaces; } protected: void ivi_application_surface_create(Resource *resource, uint32_t ivi_id, ::wl_resource *surface, uint32_t id) override; @@ -75,7 +75,7 @@ protected: private: void addIviSurface(IviSurface *iviSurface) { m_iviSurfaces.append(iviSurface); } void removeIviSurface(IviSurface *iviSurface) { m_iviSurfaces.removeOne(iviSurface); } - QVector m_iviSurfaces; + QList m_iviSurfaces; friend class IviSurface; }; diff --git a/tests/auto/wayland/shared_old/mocksurface.cpp b/tests/auto/wayland/shared_old/mocksurface.cpp index e9df5f90750..8ad45ae45b7 100644 --- a/tests/auto/wayland/shared_old/mocksurface.cpp +++ b/tests/auto/wayland/shared_old/mocksurface.cpp @@ -42,7 +42,7 @@ void Compositor::sendShellSurfaceConfigure(void *data, const QList &pa QSize size = parameters.at(1).toSize(); Q_ASSERT(size.isValid()); if (auto toplevel = surface->xdgToplevelV6()) { - QVector states = { ZXDG_TOPLEVEL_V6_STATE_ACTIVATED }; + QList states = { ZXDG_TOPLEVEL_V6_STATE_ACTIVATED }; auto statesBytes = QByteArray::fromRawData(reinterpret_cast(states.data()), states.size() * static_cast(sizeof(uint))); toplevel->send_configure(size.width(), size.height(), statesBytes); diff --git a/tests/auto/wayland/shared_old/mockxdgshellv6.h b/tests/auto/wayland/shared_old/mockxdgshellv6.h index a238fa56209..4528dd1b4f8 100644 --- a/tests/auto/wayland/shared_old/mockxdgshellv6.h +++ b/tests/auto/wayland/shared_old/mockxdgshellv6.h @@ -28,8 +28,8 @@ #include +#include #include -#include #ifndef MOCKXDGSHELLV6_H #define MOCKXDGSHELLV6_H @@ -96,7 +96,7 @@ class XdgShellV6 : public QtWaylandServer::zxdg_shell_v6 { public: explicit XdgShellV6(::wl_display *display) : zxdg_shell_v6(display, 1) {} - QVector toplevels() const { return m_toplevels; } + QList toplevels() const { return m_toplevels; } protected: void zxdg_shell_v6_get_xdg_surface(Resource *resource, uint32_t id, ::wl_resource *surface) override; @@ -104,7 +104,7 @@ protected: private: void addToplevel(XdgToplevelV6 *toplevel) { m_toplevels.append(toplevel); } void removeToplevel(XdgToplevelV6 *toplevel) { m_toplevels.removeOne(toplevel); } - QVector m_toplevels; + QList m_toplevels; friend class XdgToplevelV6; }; diff --git a/tests/auto/wayland/tabletv2/tst_tabletv2.cpp b/tests/auto/wayland/tabletv2/tst_tabletv2.cpp index 03fb2933d07..1c48a77f977 100644 --- a/tests/auto/wayland/tabletv2/tst_tabletv2.cpp +++ b/tests/auto/wayland/tabletv2/tst_tabletv2.cpp @@ -208,12 +208,12 @@ public: TabletManagerV2 *m_manager = nullptr; Seat *m_seat = nullptr; - QVector m_tablets; - QVector m_tabletsWaitingForDestroy; - QVector m_tools; - QVector m_toolsWaitingForDestroy; - QVector m_pads; - QVector m_padsWaitingForDestroy; + QList m_tablets; + QList m_tabletsWaitingForDestroy; + QList m_tools; + QList m_toolsWaitingForDestroy; + QList m_pads; + QList m_padsWaitingForDestroy; protected: void zwp_tablet_seat_v2_bind_resource(Resource *resource) @@ -445,7 +445,7 @@ class ProximityFilter : public QObject { public: ProximityFilter() { qApp->installEventFilter(this); } ~ProximityFilter() override { qDeleteAll(m_events); } - QVector m_events; + QList m_events; int nextEventIndex = 0; int numEvents() const { return m_events.size() - nextEventIndex; } @@ -621,7 +621,7 @@ signals: void tabletEventReceived(QTabletEvent *event); private: - QVector m_events; + QList m_events; }; void tst_tabletv2::moveEvent() diff --git a/tests/auto/wayland/xdgshell/tst_xdgshell.cpp b/tests/auto/wayland/xdgshell/tst_xdgshell.cpp index eabf29b7e64..3007fb32674 100644 --- a/tests/auto/wayland/xdgshell/tst_xdgshell.cpp +++ b/tests/auto/wayland/xdgshell/tst_xdgshell.cpp @@ -370,7 +370,7 @@ void tst_xdgshell::switchPopups() m_popups << new Popup(this); } ~Window() override { qDeleteAll(m_popups); } - QVector m_popups; + QList m_popups; }; Window window;