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.
19 lines
358 B
C++
19 lines
358 B
C++
#include <memory>
|
|
|
|
#include <QApplication>
|
|
|
|
#include "Application.h"
|
|
#include "includes.h"
|
|
#include "qt/QtGuiFactory.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication qtApp(argc, argv);
|
|
QtGuiFactory guiFactory;
|
|
|
|
std::shared_ptr<Application> app = Application::create(&guiFactory);
|
|
app->loadProject("data/ProjectSettings.xml");
|
|
|
|
return qtApp.exec();
|
|
}
|