[vlmc-devel] [PATCH 14/14] Main: Apply the latest Project and ConsoleRenderer
Yikai Lu
luyikei.qmltu at gmail.com
Mon Apr 11 08:09:25 CEST 2016
---
src/Main/main.cpp | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/Main/main.cpp b/src/Main/main.cpp
index 77ba8b5..ec1e37d 100644
--- a/src/Main/main.cpp
+++ b/src/Main/main.cpp
@@ -193,11 +193,10 @@ VLMCCoremain( int argc, char **argv )
#ifndef WITH_GUI
ConsoleRenderer renderer;
- ProjectManager *pm = Core::instance()->currentProject();
+ Project *p = Core::instance()->project();
- //FIXME: only signal projectLoaded( const QString& ) in ProjectManager
- QCoreApplication::connect( pm, SIGNAL( projectLoaded() ), &renderer, SLOT( startRender() ) );
- pm->loadProject( app.arguments()[1] );
+ QCoreApplication::connect( p, &Project::projectLoaded, &renderer, &ConsoleRenderer::startRender );
+ p->load( app.arguments()[1] );
#endif
return app.exec();
}
--
1.9.1
More information about the Vlmc-devel
mailing list