summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorRoland Wolf <ext-roland.wolf@nokia.com>2010-07-30 11:17:02 (GMT)
committerRoland Wolf <ext-roland.wolf@nokia.com>2010-07-30 11:17:02 (GMT)
commit2299cc27db5e40fe43c6b46d5560fe65bc9e6da5 (patch)
tree6644b72bcdb3352beefcdabfe25db6e2e3080ed6 /examples
parentaebcb1a25097208ef539c6eb58d8b30e917d4d2e (diff)
downloadQt-2299cc27db5e40fe43c6b46d5560fe65bc9e6da5.zip
Qt-2299cc27db5e40fe43c6b46d5560fe65bc9e6da5.tar.gz
Qt-2299cc27db5e40fe43c6b46d5560fe65bc9e6da5.tar.bz2
fixed compilation problem
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/tutorials/modelview/3_changingmodel/main.cpp9
-rwxr-xr-xexamples/tutorials/modelview/4_headers/main.cpp11
2 files changed, 13 insertions, 7 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();
}
diff --git a/examples/tutorials/modelview/4_headers/main.cpp b/examples/tutorials/modelview/4_headers/main.cpp
index 7be212e..5f5d05f 100755
--- a/examples/tutorials/modelview/4_headers/main.cpp
+++ b/examples/tutorials/modelview/4_headers/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();
-}
+} \ No newline at end of file