diff --git a/src/items/xqitemdelegate.cpp b/src/items/xqitemdelegate.cpp index 0b5c0e3..8d33c11 100644 --- a/src/items/xqitemdelegate.cpp +++ b/src/items/xqitemdelegate.cpp @@ -322,6 +322,7 @@ void XQItemDelegate::setModelData(QWidget* editor, QAbstractItemModel* model, co case XQItem::ComboBoxType : { QComboBox* comboBox = qobject_cast(editor); + item.setData( comboBox->currentText(), Qt::DisplayRole ); return; } diff --git a/xml/modeldata1.xtr b/xml/modeldata1.xtr index 60c55b9..205ea34 100644 --- a/xml/modeldata1.xtr +++ b/xml/modeldata1.xtr @@ -10,9 +10,9 @@ - + - + diff --git a/xml/saved_testfile.xtr b/xml/saved_testfile.xtr index 096a2f3..62c70bd 100644 --- a/xml/saved_testfile.xtr +++ b/xml/saved_testfile.xtr @@ -6,9 +6,9 @@ - - - + + +