summaryrefslogtreecommitdiffstats
path: root/examples/widgets/tools
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/tools')
-rw-r--r--examples/widgets/tools/treemodelcompleter/mainwindow.cpp2
-rw-r--r--examples/widgets/tools/undo/document.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/widgets/tools/treemodelcompleter/mainwindow.cpp b/examples/widgets/tools/treemodelcompleter/mainwindow.cpp
index 3305ac9032..44c5b1312a 100644
--- a/examples/widgets/tools/treemodelcompleter/mainwindow.cpp
+++ b/examples/widgets/tools/treemodelcompleter/mainwindow.cpp
@@ -201,7 +201,7 @@ QAbstractItemModel *MainWindow::modelFromFile(const QString &fileName)
#endif
QStandardItemModel *model = new QStandardItemModel(completer);
- QVector<QStandardItem *> parents(10);
+ QList<QStandardItem *> parents(10);
parents[0] = model->invisibleRootItem();
QRegularExpression re("^\\s+");
diff --git a/examples/widgets/tools/undo/document.h b/examples/widgets/tools/undo/document.h
index 01447ef541..6e728ca7a9 100644
--- a/examples/widgets/tools/undo/document.h
+++ b/examples/widgets/tools/undo/document.h
@@ -121,7 +121,7 @@ private:
int indexAt(const QPoint &pos) const;
QString uniqueName(const QString &name) const;
- QVector<Shape> m_shapeList;
+ QList<Shape> m_shapeList;
QPoint m_mousePressOffset;
QString m_fileName;
QUndoStack *m_undoStack = nullptr;