summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/main.cpp')
-rw-r--r--utils/themeeditor/main.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/utils/themeeditor/main.cpp b/utils/themeeditor/main.cpp
index 27ce2da23f..f876b1906e 100644
--- a/utils/themeeditor/main.cpp
+++ b/utils/themeeditor/main.cpp
@@ -36,12 +36,22 @@ extern "C"
int main(int argc, char* argv[])
{
+ QApplication app(argc, argv);
char doc[] = "#Comment\n%Vd(U);Hey\n%?bl(test,3,5,2,1)<param2|param3>";
+ ParseTreeModel tree(doc);
+
+ QTreeView view;
+ view.setModel(&tree);
+ view.show();
+
+ return app.exec();
+
+ /*
struct skin_element* test = skin_parse(doc);
- ParseTreeNode tree(test);
+ ParseTreeModel tree(doc);
std::cout << "----" << std::endl;
if(std::string(doc) == tree.genCode().toStdString())
std::cout << "Code in/out matches" << std::endl;
@@ -50,17 +60,7 @@ int main(int argc, char* argv[])
skin_free_tree(test);
+ */
-/*
- QApplication app(argc, argv);
-
- QTreeView tree;
- ParseTreeModel model(doc);
- tree.setModel(&model);
- tree.show();
-
- return app.exec();
-*/
- return 0;
}