summaryrefslogtreecommitdiffstats
path: root/examples/tutorials/modelview/5_edit/mainwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tutorials/modelview/5_edit/mainwindow.h')
-rwxr-xr-xexamples/tutorials/modelview/5_edit/mainwindow.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/tutorials/modelview/5_edit/mainwindow.h b/examples/tutorials/modelview/5_edit/mainwindow.h
index ac5b77b..41b15d1 100755
--- a/examples/tutorials/modelview/5_edit/mainwindow.h
+++ b/examples/tutorials/modelview/5_edit/mainwindow.h
@@ -42,7 +42,11 @@
#define MAINWINDOW_H
#include <QtGui/QMainWindow>
-#include <QtGui/QTableView>
+
+QT_BEGIN_NAMESPACE // QT_BEGIN_NAMESPACE / QT_END_NAMESPACE are not needed in Qt user code
+class QTableView; //forward declaration
+QT_END_NAMESPACE
+
class MainWindow : public QMainWindow
{