diff options
author | Roland Wolf <ext-roland.wolf@nokia.com> | 2010-07-30 11:17:02 (GMT) |
---|---|---|
committer | Roland Wolf <ext-roland.wolf@nokia.com> | 2010-07-30 11:17:02 (GMT) |
commit | 2299cc27db5e40fe43c6b46d5560fe65bc9e6da5 (patch) | |
tree | 6644b72bcdb3352beefcdabfe25db6e2e3080ed6 /examples/tutorials/modelview/4_headers/main.cpp | |
parent | aebcb1a25097208ef539c6eb58d8b30e917d4d2e (diff) | |
download | Qt-2299cc27db5e40fe43c6b46d5560fe65bc9e6da5.zip Qt-2299cc27db5e40fe43c6b46d5560fe65bc9e6da5.tar.gz Qt-2299cc27db5e40fe43c6b46d5560fe65bc9e6da5.tar.bz2 |
fixed compilation problem
Diffstat (limited to 'examples/tutorials/modelview/4_headers/main.cpp')
-rwxr-xr-x | examples/tutorials/modelview/4_headers/main.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
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 |