コード例 #1
0
ファイル: lrenumpropitem.cpp プロジェクト: fralx/LimeReport
void EnumPropItem::slotEnumChanged(const QString &text)
{
    if ( nameByType(object()->property(propertyName().toLatin1()).toInt())!=text){
        beginChangeValue();
        setPropertyValue(typeByName(text));
        setValueToObject(propertyName(),typeByName(text));
        endChangeValue();
    }
}
コード例 #2
0
ファイル: lrenumpropitem.cpp プロジェクト: fralx/LimeReport
void EnumPropItem::setPropertyEditorData(QWidget *propertyEditor, const QModelIndex &) const
{
    ComboBoxEditor *editor=qobject_cast<ComboBoxEditor *>(propertyEditor);
    editor->setTextValue(nameByType(propertyValue().toInt()));
}
コード例 #3
0
ファイル: lrenumpropitem.cpp プロジェクト: fralx/LimeReport
QString EnumPropItem::displayValue() const
{
    return nameByType((propertyValue().toInt()));
}
コード例 #4
0
ファイル: DNAFlexGraph.cpp プロジェクト: ugeneunipro/ugene
/**
 * Constructor of the DNA Flexibility graph
 */
DNAFlexGraphFactory::DNAFlexGraphFactory(QObject* parent)
    : GSequenceGraphFactory(nameByType(), parent)
{
}