summaryrefslogtreecommitdiffstats
path: root/examples/tutorials/modelview/6_treeview/mainwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tutorials/modelview/6_treeview/mainwindow.h')
-rwxr-xr-xexamples/tutorials/modelview/6_treeview/mainwindow.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/tutorials/modelview/6_treeview/mainwindow.h b/examples/tutorials/modelview/6_treeview/mainwindow.h
index 4c4ddb0..16d3140 100755
--- a/examples/tutorials/modelview/6_treeview/mainwindow.h
+++ b/examples/tutorials/modelview/6_treeview/mainwindow.h
@@ -42,8 +42,12 @@
#define MAINWINDOW_H
#include <QtGui/QMainWindow>
-#include <QtGui/QTreeView>
-#include <QtGui/QStandardItemModel>
+
+QT_BEGIN_NAMESPACE // QT_BEGIN_NAMESPACE / QT_END_NAMESPACE are not needed in Qt user code
+class QTreeView; //forward declarations
+class QStandardItemModel;
+class QStandardItem;
+QT_END_NAMESPACE
class MainWindow : public QMainWindow