Include example scene header if needed.

This commit is contained in:
Shaun Reed 2025-03-16 15:32:41 -04:00
parent d6dbb5c2ff
commit f7b807d3a5

View File

@ -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();