From 88121d70c301f735d669a2ef5bed217ad4fc8170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Tue, 1 Dec 2009 15:56:17 +0000 Subject: [PATCH] Preparation for Qsettings git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7718 383ad7c9-94d9-4d36-a494-682f7c89f535 --- Core/optionHandling.cc | 3 +++ common/GlobalOptions.cc | 6 ++++++ common/GlobalOptions.hh | 6 ++++++ 3 files changed, 15 insertions(+) diff --git a/Core/optionHandling.cc b/Core/optionHandling.cc index de8e5a78..cd5324cf 100644 --- a/Core/optionHandling.cc +++ b/Core/optionHandling.cc @@ -186,6 +186,9 @@ void Core::saveOptions(){ void Core::setupOptions() { + // initialize the Settings: + OpenFlipper::Options::initializeSettings(); + // Get the Main config dir in the home directory and possibly create it QDir configDir = QDir::home(); diff --git a/common/GlobalOptions.cc b/common/GlobalOptions.cc index aa67e85a..8a24a33a 100644 --- a/common/GlobalOptions.cc +++ b/common/GlobalOptions.cc @@ -1082,6 +1082,12 @@ bool renderPicking( ) { return renderPicking_; } +/// Internal function called by the core to connect to the program options +DLLEXPORT +bool initializeSettings() { + +} + } } diff --git a/common/GlobalOptions.hh b/common/GlobalOptions.hh index db612736..6fc84f38 100644 --- a/common/GlobalOptions.hh +++ b/common/GlobalOptions.hh @@ -969,6 +969,12 @@ DLLEXPORT bool renderPicking( ); /** @} */ + +/// Internal function called by the core to connect to the program options +DLLEXPORT +bool initializeSettings(); + + } } -- GitLab