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

void Palapeli::PatternConfiguration::addProperty ( const QByteArray &  key,
DataType  type,
const QString &  caption 
) [protected, inherited]

Define a new property.

Parameters:
key the key of the new property (used to access its value etc.)
type the type of the property (see documentation of DataType enumeration)
caption caption for use in configuration dialogs

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

{
      if (p->m_configurationValues.contains(key))
            return;
      p->m_configurationValues[key] = QVariant();
      p->m_configurationDataTypes[key] = type;
      p->m_configurationCaptions[key] = caption;
      p->m_configurationParameters[key] = QVariantList();
}


Generated by  Doxygen 1.6.0   Back to index