X-Git-Url: https://vaikene.ee/gitweb/highlight.css?a=blobdiff_plain;f=src%2Flibs%2FCommon%2Fconfig.cpp;h=5303bb86e8747ea84b3e55fb21b0bea389b9e976;hb=a81a943bee20df3c7eb34bafb3e3fe878facfe4e;hp=610dd74d98b445ba766efad28cc0badf0df0e557;hpb=ec272061c2af46e4cd8730c18682e18ac5b369ff;p=evaf diff --git a/src/libs/Common/config.cpp b/src/libs/Common/config.cpp index 610dd74..5303bb8 100644 --- a/src/libs/Common/config.cpp +++ b/src/libs/Common/config.cpp @@ -33,7 +33,7 @@ using namespace eVaf::Common; iConfig * iConfig::instance() { static Internal::Config singleton; - return singleton.interface(); + return singleton._interface(); } @@ -55,7 +55,7 @@ Config::~Config() done(); } -iConfig * Config::interface() const +iConfig * Config::_interface() const { return evafQueryInterface("iConfig"); } @@ -123,7 +123,7 @@ QVariant Config::getValue(QString const & paramName, QVariant const & defaultVal } // Read the value - return ini->getValue(name, defaultValue); + return ini->getValue(name.toLocal8Bit(), defaultValue); } bool Config::setValue(QString const & paramName, QVariant const & value, bool commit) @@ -198,7 +198,7 @@ bool Config::writeValue(QString const & paramName, QVariant const & value) } // Write the value - if (!ini->setValue(name, value)) + if (!ini->setValue(name.toLocal8Bit(), value)) return false; return true;