summaryrefslogtreecommitdiffstats
path: root/examples/corelib/tools/contiguouscache/randomlistmodel.h
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2019-02-03 17:09:10 +0100
committerLiang Qi <liang.qi@qt.io>2019-02-06 22:11:27 +0000
commit4715ca7bc54fc1f30dd7e603a396c876d667c92c (patch)
treec18936b1b194f7820dfbe5c74214f252ec0a10e6 /examples/corelib/tools/contiguouscache/randomlistmodel.h
parent7910dd0a548cdd9e7c5716d4f6704b3185fa34fb (diff)
Cleanup QtCore examples
Cleanup QtCore examples: - use new signal/slot syntax - use 0 instead nullptr - remove unneeded includes - use initializer lists - replace foreach with range-based-for loop Change-Id: I5581f485fa0e9ccf3f4ce6f643908832bc6959bb Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'examples/corelib/tools/contiguouscache/randomlistmodel.h')
-rw-r--r--examples/corelib/tools/contiguouscache/randomlistmodel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/corelib/tools/contiguouscache/randomlistmodel.h b/examples/corelib/tools/contiguouscache/randomlistmodel.h
index e6192b434f..1fabb0d9f5 100644
--- a/examples/corelib/tools/contiguouscache/randomlistmodel.h
+++ b/examples/corelib/tools/contiguouscache/randomlistmodel.h
@@ -59,7 +59,7 @@ class RandomListModel : public QAbstractListModel
{
Q_OBJECT
public:
- RandomListModel(QObject *parent = 0);
+ RandomListModel(QObject *parent = nullptr);
~RandomListModel();
int rowCount(const QModelIndex & = QModelIndex()) const override;