summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xexamples/tutorials/modelview/3_changingmodel/mymodel.h3
-rwxr-xr-xexamples/tutorials/modelview/5_edit/mainwindow.h3
-rwxr-xr-xexamples/tutorials/modelview/6_treeview/mainwindow.h6
-rwxr-xr-xexamples/tutorials/modelview/7_selections/mainwindow.h6
4 files changed, 6 insertions, 12 deletions
diff --git a/examples/tutorials/modelview/3_changingmodel/mymodel.h b/examples/tutorials/modelview/3_changingmodel/mymodel.h
index 47b026e..87c3dba 100755
--- a/examples/tutorials/modelview/3_changingmodel/mymodel.h
+++ b/examples/tutorials/modelview/3_changingmodel/mymodel.h
@@ -42,8 +42,7 @@
#define MYMODEL_H
#include <QAbstractTableModel>
-
-class QTimer; // forward declaration
+#include <QTimer>
class MyModel : public QAbstractTableModel
{
diff --git a/examples/tutorials/modelview/5_edit/mainwindow.h b/examples/tutorials/modelview/5_edit/mainwindow.h
index 1d49f47..ac5b77b 100755
--- a/examples/tutorials/modelview/5_edit/mainwindow.h
+++ b/examples/tutorials/modelview/5_edit/mainwindow.h
@@ -42,8 +42,7 @@
#define MAINWINDOW_H
#include <QtGui/QMainWindow>
-
-class QTableView; //forward declaration
+#include <QtGui/QTableView>
class MainWindow : public QMainWindow
{
diff --git a/examples/tutorials/modelview/6_treeview/mainwindow.h b/examples/tutorials/modelview/6_treeview/mainwindow.h
index fb8de79..4c4ddb0 100755
--- a/examples/tutorials/modelview/6_treeview/mainwindow.h
+++ b/examples/tutorials/modelview/6_treeview/mainwindow.h
@@ -42,10 +42,8 @@
#define MAINWINDOW_H
#include <QtGui/QMainWindow>
-
-class QTreeView; //forward declaration
-class QStandardItemModel;
-class QStandardItem;
+#include <QtGui/QTreeView>
+#include <QtGui/QStandardItemModel>
class MainWindow : public QMainWindow
diff --git a/examples/tutorials/modelview/7_selections/mainwindow.h b/examples/tutorials/modelview/7_selections/mainwindow.h
index f2defb5..a8f8488 100755
--- a/examples/tutorials/modelview/7_selections/mainwindow.h
+++ b/examples/tutorials/modelview/7_selections/mainwindow.h
@@ -42,10 +42,8 @@
#define MAINWINDOW_H
#include <QtGui/QMainWindow>
-
-class QTreeView; //forward declaration
-class QStandardItemModel;
-class QItemSelection;
+#include <QtGui/QTreeView>
+#include <QtGui/QStandardItemModel>
class MainWindow : public QMainWindow