ui: load project via MenuBar
This change adds a MenuBar to QtMainWindow and adds an action for opening a different project settings XML file. The message MessageLoadProject is thereon used to load a new project in the Application and clearing the Storage.
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ int main(int argc, char *argv[])
|
||||
QtGuiFactory guiFactory;
|
||||
|
||||
std::shared_ptr<Application> app = Application::create(&guiFactory);
|
||||
app->loadProject();
|
||||
app->loadProject("data/ProjectSettings.xml");
|
||||
|
||||
return qtApp.exec();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user