summaryrefslogtreecommitdiffstats
path: root/tests/manual/highdpi
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2020-07-06 16:37:47 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2020-07-07 11:48:45 +0200
commitd33655a9531b750e1574742ff575f871c19ed808 (patch)
tree8b90d1878dd5f0d9ea38bc048b22f718273bb802 /tests/manual/highdpi
parenta02d2d3f22acbf9afb349964f5da00d0e91af887 (diff)
Use QList instead of QVector in other qtbase tests
Task-number: QTBUG-84469 Change-Id: Ie0455c890c048c52eacad1badd6d21df999badf9 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'tests/manual/highdpi')
-rw-r--r--tests/manual/highdpi/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/manual/highdpi/main.cpp b/tests/manual/highdpi/main.cpp
index 2a9fb6aa0c..d4fe1d00c6 100644
--- a/tests/manual/highdpi/main.cpp
+++ b/tests/manual/highdpi/main.cpp
@@ -102,7 +102,7 @@ protected:
QWidget *m_widget = nullptr;
};
-using DemoContainerList = QVector<DemoContainerBase*>;
+using DemoContainerList = QList<DemoContainerBase*>;
template <class T>
class DemoContainer : public DemoContainerBase
@@ -551,7 +551,7 @@ QMenu *MainWindow::addNewMenu(const QString &title, int itemCount)
void MainWindow::maskActionToggled(bool t)
{
if (t) {
- QVector<QPoint> upperLeftTriangle;
+ QList<QPoint> upperLeftTriangle;
upperLeftTriangle << QPoint(0, 0) << QPoint(width(), 0) << QPoint(0, height());
setMask(QRegion(QPolygon(upperLeftTriangle)));
} else {
@@ -851,7 +851,7 @@ public:
private:
QPoint lastMousePoint;
- QVector<QPoint> linePoints;
+ QList<QPoint> linePoints;
};
void LinePainter::paintEvent(QPaintEvent *)