summaryrefslogtreecommitdiffstats
path: root/examples/widgets/itemviews/editabletreemodel/main.cpp
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2018-11-23 19:45:56 +0100
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>2019-01-24 20:31:55 +0000
commite0e22d56ac4a37a57d02383747fbacccaaa407bd (patch)
tree5271e300ef179327116ecd0291ee1966a165b4d4 /examples/widgets/itemviews/editabletreemodel/main.cpp
parent866112973d2b4e2fc6f1647a103b2353eecbd151 (diff)
Cleanup EditableItemModel example
Cleanup the EditableItemModel example: - include own headers first - use nullptr - add sanity checks - use for loop instead foreach - use const where possible Change-Id: Ib36e5710c07979576b48a905ee50908a64dcb697 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'examples/widgets/itemviews/editabletreemodel/main.cpp')
-rw-r--r--examples/widgets/itemviews/editabletreemodel/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/widgets/itemviews/editabletreemodel/main.cpp b/examples/widgets/itemviews/editabletreemodel/main.cpp
index 80f6842730..5e9ff214a3 100644
--- a/examples/widgets/itemviews/editabletreemodel/main.cpp
+++ b/examples/widgets/itemviews/editabletreemodel/main.cpp
@@ -48,10 +48,10 @@
**
****************************************************************************/
-#include <QApplication>
-
#include "mainwindow.h"
+#include <QApplication>
+
int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(editabletreemodel);