diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-07-06 12:34:58 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-07-06 13:43:20 +0200 |
commit | 1e25b81e0d6c1da4643c9cc48680f5cc4399d068 (patch) | |
tree | 39f7a70e11b6b14382673167b6e183f70e3dc6c5 /src/plugins/platforms/xcb/qxcbwindow.cpp | |
parent | 23b7e7972ea40afd2594d0570cbcf8192619cd56 (diff) |
Use QList instead of QVector in plugins
Task-number: QTBUG-84469
Change-Id: Ic86f4a3000592a1c9ae62e4a83f4fe39832a6b24
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbwindow.cpp')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbwindow.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/platforms/xcb/qxcbwindow.cpp b/src/plugins/platforms/xcb/qxcbwindow.cpp index af12f20104..c29e18529c 100644 --- a/src/plugins/platforms/xcb/qxcbwindow.cpp +++ b/src/plugins/platforms/xcb/qxcbwindow.cpp @@ -632,7 +632,7 @@ QMargins QXcbWindow::frameMargins() const bool foundRoot = false; - const QVector<xcb_window_t> &virtualRoots = + const QList<xcb_window_t> &virtualRoots = connection()->wmSupport()->virtualRoots(); while (!foundRoot) { @@ -1086,7 +1086,7 @@ void QXcbWindow::setNetWmStateOnUnmappedWindow() // we first read it and then merge our hints with the existing values, allowing a user // to set custom hints. - QVector<xcb_atom_t> atoms; + QList<xcb_atom_t> atoms; auto reply = Q_XCB_REPLY_UNCHECKED(xcb_get_property, xcb_connection(), 0, m_window, atom(QXcbAtom::_NET_WM_STATE), XCB_ATOM_ATOM, 0, 1024); @@ -1293,7 +1293,7 @@ void QXcbWindow::setWindowIconText(const QString &title) void QXcbWindow::setWindowIcon(const QIcon &icon) { - QVector<quint32> icon_data; + QList<quint32> icon_data; if (!icon.isNull()) { QList<QSize> availableSizes = icon.availableSizes(); if (availableSizes.isEmpty()) { @@ -1542,7 +1542,7 @@ QXcbWindowFunctions::WmWindowTypes QXcbWindow::wmWindowTypes() const void QXcbWindow::setWmWindowType(QXcbWindowFunctions::WmWindowTypes types, Qt::WindowFlags flags) { - QVector<xcb_atom_t> atoms; + QList<xcb_atom_t> atoms; // manual selection 1 (these are never set by Qt and take precedence) if (types & QXcbWindowFunctions::Normal) @@ -2526,9 +2526,9 @@ void QXcbWindow::setOpacity(qreal level) (uchar *)&value); } -QVector<xcb_rectangle_t> qRegionToXcbRectangleList(const QRegion ®ion) +QList<xcb_rectangle_t> qRegionToXcbRectangleList(const QRegion ®ion) { - QVector<xcb_rectangle_t> rects; + QList<xcb_rectangle_t> rects; rects.reserve(region.rectCount()); for (const QRect &r : region) rects.push_back(qRectToXCBRectangle(r)); |