+ if (argc > 1)
+ window->load_stl(argv[1]);
+ else
+ window->load_stl(":gl/sphere.stl");
+}
+
+bool App::event(QEvent* e)
+{
+ if (e->type() == QEvent::FileOpen)
+ {
+ window->load_stl(static_cast<QFileOpenEvent*>(e)->file());
+ return true;
+ }
+ else
+ {
+ return QApplication::event(e);
+ }