Logo Search packages:      
Sourcecode: palapeli version File versions  Download package

void Palapeli::PatternConfiguration::writeArguments ( KConfigGroup *  config  )  const [inherited]

Saves parameters to a configuration. This function writes the values of all defined properties to the passed config.

Parameters:
config the KConfigGroup to write to
See also:
writeCustomArguments

Definition at line 128 of file pattern-configuration.cpp.

References Palapeli::PatternConfiguration::property().

{
      QMapIterator<QByteArray, QVariant> iterConfigValues(p->m_configurationValues);
      while (iterConfigValues.hasNext())
      {
            QByteArray key = iterConfigValues.next().key();
            if (p->m_configurationCaptions.contains(key)) //do not write internal values (PatternName, DisplayName, IconName)
                  config->writeEntry(key.data(), property(key));
      }
      //exception from above rule: write internal value PatternName
      config->writeEntry("PatternName", property("PatternName"));
}


Generated by  Doxygen 1.6.0   Back to index