summaryrefslogtreecommitdiffstats
path: root/examples/tutorials/modelview/3_changingmodel/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tutorials/modelview/3_changingmodel/main.cpp')
-rwxr-xr-xexamples/tutorials/modelview/3_changingmodel/main.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/tutorials/modelview/3_changingmodel/main.cpp b/examples/tutorials/modelview/3_changingmodel/main.cpp
index 7be212e..3b6061a 100755
--- a/examples/tutorials/modelview/3_changingmodel/main.cpp
+++ b/examples/tutorials/modelview/3_changingmodel/main.cpp
@@ -39,12 +39,15 @@
****************************************************************************/
#include <QtGui/QApplication>
-#include "modelview.h"
+#include <QtGui/QTableView>
+#include "mymodel.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
- ModelView w;
- w.show();
+ QTableView tableView;
+ MyModel myModel(0);
+ tableView.setModel( &myModel );
+ tableView.show();
return a.exec();
}