#include "Config.hpp" #include #include #include Config::Config(QObject* parent) : QObject(parent) { } void Config::store() { Calamares::GlobalStorage* gs = Calamares::JobQueue::instance()->globalStorage(); gs->insert( "lliurexDesktopLayout", m_layout ); qDebug()<<"storing layout "<::const_iterator i = configurationMap.find("translations"); if (i!=configurationMap.end()) { QVariantList langs = i.value().toList(); QList::const_iterator j = langs.begin(); while (j!=langs.end()) { QMap lang = (*j).toMap(); QMap::const_iterator name = lang.find("lang"); QMap::const_iterator messages = lang.find("messages"); if (name!=lang.end() and messages!=lang.end()) { qDebug()<<"Translation for:"<::const_iterator q = msgs.begin(); while (q!=msgs.end()) { QMap msg = (*q).toMap(); QMap::const_iterator id = msg.find("id"); QMap::const_iterator value = msg.find("value"); m_translations[name.value().toString()][id.value().toString()] = value.value().toString(); q++; } } j++; } } }