diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-11-13 14:15:50 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-11-14 12:33:44 +0100 |
commit | 4606e00679ba2c11661ce099fa6bcb489b239bae (patch) | |
tree | 3222dce26b4d885e802bc6e10043086a48c6f0ab /examples/activeqt | |
parent | 3428921b2a765e406c7fea89d112323f1491346b (diff) |
Reduce QList usage
Prepare for migration to Qt 6 by using QVector where possible.
Otherwise, use auto or typedefs like QVariantList.
Change-Id: I6d385efe1a45a0519cf4bb06a1f6d1ea869e890e
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'examples/activeqt')
-rw-r--r-- | examples/activeqt/comapp/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/activeqt/comapp/main.cpp b/examples/activeqt/comapp/main.cpp index 74b7fa3..62f92b8 100644 --- a/examples/activeqt/comapp/main.cpp +++ b/examples/activeqt/comapp/main.cpp @@ -53,6 +53,7 @@ #include <QTabWidget> #include <QScopedPointer> #include <QTimer> +#include <QVector> class Application; class DocumentList; @@ -104,7 +105,7 @@ public slots: Document *item(int index) const; private: - QList<Document *> m_list; + QVector<Document *> m_list; }; //! [1] |