diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2018-11-24 17:29:15 +0100 |
---|---|---|
committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2018-12-17 19:50:38 +0000 |
commit | af84f12298e7ba51d4121f9dd7a1b6e3ba050266 (patch) | |
tree | e50ee76c43ae66b638cfc367cf74cbeda7de0a28 /examples/widgets/itemviews/fetchmore/filelistmodel.h | |
parent | b8720e3e7a93121cd2e6dc081d872e8000ce81c9 (diff) |
Cleanup Itemviews examples
Cleanup the Itemviews examples
- use nullptr instead 0
- use for loop instead foreach
- include own header first
- remove uselss includes
Change-Id: I32e9f64356e42038707d063dcad977239ce1fe9e
Reviewed-by: Luca Beldi <v.ronin@yahoo.it>
Reviewed-by: Sze Howe Koh <szehowe.koh@gmail.com>
Diffstat (limited to 'examples/widgets/itemviews/fetchmore/filelistmodel.h')
-rw-r--r-- | examples/widgets/itemviews/fetchmore/filelistmodel.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/widgets/itemviews/fetchmore/filelistmodel.h b/examples/widgets/itemviews/fetchmore/filelistmodel.h index 9251eaf959..35cf6f7b46 100644 --- a/examples/widgets/itemviews/fetchmore/filelistmodel.h +++ b/examples/widgets/itemviews/fetchmore/filelistmodel.h @@ -52,7 +52,6 @@ #define FILELISTMODEL_H #include <QAbstractListModel> -#include <QList> #include <QStringList> //![0] @@ -61,7 +60,7 @@ class FileListModel : public QAbstractListModel Q_OBJECT public: - FileListModel(QObject *parent = 0); + FileListModel(QObject *parent = nullptr); int rowCount(const QModelIndex &parent = QModelIndex()) const override; QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; |