void EnumPropItem::slotEnumChanged(const QString &text) { if ( nameByType(object()->property(propertyName().toLatin1()).toInt())!=text){ beginChangeValue(); setPropertyValue(typeByName(text)); setValueToObject(propertyName(),typeByName(text)); endChangeValue(); } }
void EnumPropItem::setPropertyEditorData(QWidget *propertyEditor, const QModelIndex &) const { ComboBoxEditor *editor=qobject_cast<ComboBoxEditor *>(propertyEditor); editor->setTextValue(nameByType(propertyValue().toInt())); }
QString EnumPropItem::displayValue() const { return nameByType((propertyValue().toInt())); }
/** * Constructor of the DNA Flexibility graph */ DNAFlexGraphFactory::DNAFlexGraphFactory(QObject* parent) : GSequenceGraphFactory(nameByType(), parent) { }