|
@@ -19,7 +19,7 @@ GuiSceneManager::GuiSceneManager(QObject *parent) : QObject(parent) {
|
|
|
GuiSceneManager::~GuiSceneManager() {}
|
|
|
|
|
|
|
|
|
-bool GuiSceneManager::registerScene(QString scene_name, QWidget* name) {
|
|
|
+bool GuiSceneManager::registerScene(QString scene_name, Scene* name) {
|
|
|
if (scene_name == "none")
|
|
|
return false;
|
|
|
|
|
@@ -40,7 +40,7 @@ bool GuiSceneManager::changeScene(QString scene_name, QString args) {
|
|
|
if (current_scene_ != "none")
|
|
|
scenes_[current_scene_]->hide();
|
|
|
|
|
|
- //scenes_[scene_name]->parseArgs(args);
|
|
|
+ scenes_[scene_name]->parseArgs(args);
|
|
|
scenes_[scene_name]->show();
|
|
|
current_scene_ = scene_name;
|
|
|
return true;
|