summaryrefslogtreecommitdiffstats
path: root/examples/tutorials/modelview/3_changingmodel/mymodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tutorials/modelview/3_changingmodel/mymodel.h')
-rwxr-xr-xexamples/tutorials/modelview/3_changingmodel/mymodel.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/tutorials/modelview/3_changingmodel/mymodel.h b/examples/tutorials/modelview/3_changingmodel/mymodel.h
index 87c3dba..91e3cb9 100755
--- a/examples/tutorials/modelview/3_changingmodel/mymodel.h
+++ b/examples/tutorials/modelview/3_changingmodel/mymodel.h
@@ -42,7 +42,11 @@
#define MYMODEL_H
#include <QAbstractTableModel>
-#include <QTimer>
+
+QT_BEGIN_NAMESPACE // QT_BEGIN_NAMESPACE / QT_END_NAMESPACE are not needed in Qt user code
+class QTimer; // forward declaration
+QT_END_NAMESPACE
+
class MyModel : public QAbstractTableModel
{