ui: Refactored QtCodeSnippet and added view settings to ApplicationSettings
This change refactors parts of the QtCodeSnippet and places some settings into ApplicationSettings. Additionally Application- and ProjectSettings were abstracted to the common base class Settings, which takes care of the getting and setting values of the Configmanager member.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "Application.h"
|
||||
|
||||
#include "ApplicationSettings.h"
|
||||
#include "component/view/MainView.h"
|
||||
#include "data/Storage.h"
|
||||
#include "gui/GuiFactory.h"
|
||||
@@ -12,6 +13,8 @@ std::shared_ptr<Application> Application::create(GuiFactory* guiFactory)
|
||||
std::shared_ptr<ConsoleLogger> consoleLogger = std::make_shared<ConsoleLogger>(); // TODO: move to main
|
||||
LogManager::getInstance()->addLogger(consoleLogger);
|
||||
|
||||
ApplicationSettings::getInstance()->load("data/ApplicationSettings.xml");
|
||||
|
||||
std::shared_ptr<Application> ptr(new Application());
|
||||
ptr->m_storage = std::make_shared<Storage>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user