diff --git a/GUI/Support/Data/Dirs.cpp b/GUI/Support/Data/Dirs.cpp index dd972d0ab06b2cf519adef5ac588420e5336bcda..f260da7076ec937f6b2f46ed265a7c2cb5590f5e 100644 --- a/GUI/Support/Data/Dirs.cpp +++ b/GUI/Support/Data/Dirs.cpp @@ -37,14 +37,14 @@ Dirs::Dirs() script_import_dir = QDir::homePath(); // TODO replace homePath by QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) ? - readSettings(); + loadSettings(); } Dirs::~Dirs() = default; //! Reads settings of Dirs from global settings. -void Dirs::readSettings() +void Dirs::loadSettings() { QSettings s; if (s.childGroups().contains(S_DIRS)) { diff --git a/GUI/Support/Data/Dirs.h b/GUI/Support/Data/Dirs.h index 68bda63afbdaa08d649b3d6b6c5a25ab54041fc8..e9f76d464fce1cfd3b3fd3f8bbf2439d0719872e 100644 --- a/GUI/Support/Data/Dirs.h +++ b/GUI/Support/Data/Dirs.h @@ -35,7 +35,7 @@ public: void writeSettings(); private: - void readSettings(); + void loadSettings(); }; BA_GUI_API_ extern std::unique_ptr<Dirs> gDirs; diff --git a/GUI/View/Main/MainWindow.cpp b/GUI/View/Main/MainWindow.cpp index b49e36213f606bdc292c97f427bc6ccf8b091f35..b349b87e17461ea5f3def8c62a723663e115ed46 100644 --- a/GUI/View/Main/MainWindow.cpp +++ b/GUI/View/Main/MainWindow.cpp @@ -40,7 +40,7 @@ MainWindow::MainWindow() setCentralWidget(m_central_widget); initApplication(); - readSettings(); + loadSettings(); connect(m_project_manager, &ProjectManager::documentOpenedOrClosed, this, &MainWindow::onDocumentOpenedOrClosed); @@ -105,14 +105,14 @@ void MainWindow::initApplication() setCorner(Qt::BottomRightCorner, Qt::BottomDockWidgetArea); } -void MainWindow::readSettings() +void MainWindow::loadSettings() { QSettings s; s.beginGroup(GUI::Style::S_MAIN_WINDOW); resize(s.value(GUI::Style::S_WINDOW_SIZE, QSize(1000, 600)).toSize()); move(s.value(GUI::Style::S_WINDOW_POSITION, QPoint(500, 300)).toPoint()); s.endGroup(); - m_project_manager->readSettings(); + m_project_manager->loadSettings(); } void MainWindow::writeSettings() diff --git a/GUI/View/Main/MainWindow.h b/GUI/View/Main/MainWindow.h index 5097970b4fc1192bdd84bef629f22c34226e02df..a4d73c1b0f69d00c9fba52bf9c5fd2b0b0399533 100644 --- a/GUI/View/Main/MainWindow.h +++ b/GUI/View/Main/MainWindow.h @@ -38,7 +38,7 @@ private: void closeEvent(QCloseEvent* event) override; void initApplication(); - void readSettings(); + void loadSettings(); void writeSettings(); //! Recalculate the size of the view selection buttons to show complete button text diff --git a/GUI/View/Manager/ProjectManager.cpp b/GUI/View/Manager/ProjectManager.cpp index 652767c49528275a7b22f61af015d3a042cdd302..474097b4ffebeb41b88667f8249c9324d535f73f 100644 --- a/GUI/View/Manager/ProjectManager.cpp +++ b/GUI/View/Manager/ProjectManager.cpp @@ -47,7 +47,7 @@ ProjectManager::~ProjectManager() = default; //! Reads settings of ProjectManager from global settings. -void ProjectManager::readSettings() +void ProjectManager::loadSettings() { QSettings s; m_working_directory = QDir::homePath(); diff --git a/GUI/View/Manager/ProjectManager.h b/GUI/View/Manager/ProjectManager.h index 56d9da12a05b5faf4ab4ebd52fea86ff2c9abffa..f2d6f2b9616b1738f2078352cc736d57377951f3 100644 --- a/GUI/View/Manager/ProjectManager.h +++ b/GUI/View/Manager/ProjectManager.h @@ -29,7 +29,7 @@ public: ProjectManager(QObject* parent); ~ProjectManager() override; - void readSettings(); + void loadSettings(); void writeSettings(); bool saveOnQuit();