diff options
| author | Robert Bieber <robby@bieberphoto.com> | 2010-05-26 21:13:14 +0000 |
|---|---|---|
| committer | Robert Bieber <robby@bieberphoto.com> | 2010-05-26 21:13:14 +0000 |
| commit | 565cd0096393dcd3a33b546d76714c64c2c786e3 (patch) | |
| tree | 2b1882d987048bb00cd394a50f1cb24585b08af5 /utils/themeeditor/main.cpp | |
| parent | 28a7c5d3692e59b5c80a9f713cf931b6453cb1ca (diff) | |
| download | rockbox-565cd0096393dcd3a33b546d76714c64c2c786e3.zip rockbox-565cd0096393dcd3a33b546d76714c64c2c786e3.tar.gz rockbox-565cd0096393dcd3a33b546d76714c64c2c786e3.tar.bz2 rockbox-565cd0096393dcd3a33b546d76714c64c2c786e3.tar.xz | |
Trying to implement QAbstractItemModel for parse trees, haven't got it working yet (current state will spawn an empty treeview window)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26318 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/main.cpp')
| -rw-r--r-- | utils/themeeditor/main.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/utils/themeeditor/main.cpp b/utils/themeeditor/main.cpp index 45ea662..b43b419 100644 --- a/utils/themeeditor/main.cpp +++ b/utils/themeeditor/main.cpp @@ -32,9 +32,10 @@ namespace wps #include <cstdio> #include <QtGui/QApplication> -#include <QFileSystemModel> #include <QTreeView> +#include "parsetreemodel.h" + int main(int argc, char* argv[]) { @@ -46,6 +47,14 @@ int main(int argc, char* argv[]) wps::skin_free_tree(test); + QApplication app(argc, argv); + + QTreeView tree; + ParseTreeModel model(doc); + tree.setModel(&model); + tree.show(); + + return app.exec(); return 0; } |