Include example scene header if needed.
This commit is contained in:
parent
d6dbb5c2ff
commit
f7b807d3a5
@ -9,7 +9,13 @@
|
|||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
|
|
||||||
#include "qtkmainwindow.h"
|
#include "qtkmainwindow.h"
|
||||||
|
|
||||||
|
#ifdef QTK_GUI_SCENE
|
||||||
#include "qtkscene.h"
|
#include "qtkscene.h"
|
||||||
|
using AppScene = QtkScene;
|
||||||
|
#else
|
||||||
|
using AppScene = EmptyScene;
|
||||||
|
#endif
|
||||||
|
|
||||||
int main(int argc, char * argv[])
|
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
|
// NOTE: We set the scene here and not in QtkMainWindow to detach the scene
|
||||||
// from the QtkWidget plugin (qtk_plugin_library build target).
|
// from the QtkWidget plugin (qtk_plugin_library build target).
|
||||||
// Once we can save / load scenes, this call, and QtkScene, can be removed.
|
// Once we can save / load scenes, this call, and QtkScene, can be removed.
|
||||||
#ifdef QTK_GUI_SCENE
|
window->setScene(new AppScene);
|
||||||
window->setScene(new QtkScene);
|
|
||||||
#else
|
|
||||||
window->setScene(new EmptyScene);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
window->show();
|
window->show();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user