Remove large resources from the application. #16
@ -9,7 +9,13 @@
 | 
			
		||||
#include <QApplication>
 | 
			
		||||
 | 
			
		||||
#include "qtkmainwindow.h"
 | 
			
		||||
 | 
			
		||||
#ifdef QTK_GUI_SCENE
 | 
			
		||||
#include "qtkscene.h"
 | 
			
		||||
using AppScene = QtkScene;
 | 
			
		||||
#else
 | 
			
		||||
using AppScene = EmptyScene;
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
int main(int argc, char * argv[])
 | 
			
		||||
{
 | 
			
		||||
@ -24,11 +30,7 @@ int main(int argc, char * argv[])
 | 
			
		||||
  // NOTE: We set the scene here and not in QtkMainWindow to detach the scene
 | 
			
		||||
  // from the QtkWidget plugin (qtk_plugin_library build target).
 | 
			
		||||
  // Once we can save / load scenes, this call, and QtkScene, can be removed.
 | 
			
		||||
#ifdef QTK_GUI_SCENE
 | 
			
		||||
  window->setScene(new QtkScene);
 | 
			
		||||
#else
 | 
			
		||||
  window->setScene(new EmptyScene);
 | 
			
		||||
#endif
 | 
			
		||||
  window->setScene(new AppScene);
 | 
			
		||||
 | 
			
		||||
  window->show();
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user