mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
refs #437 Removed toQVariant and convertFromQVariant.
This commit is contained in:
@@ -120,7 +120,7 @@ namespace BlackGui
|
||||
// otherwise (comboboxes) standard handling via QItemDelegate
|
||||
CKeyboardLineEdit *lineEdit = qobject_cast<CKeyboardLineEdit *>(editor);
|
||||
if (lineEdit)
|
||||
model->setData(index, lineEdit->getKey().toQVariant() , Qt::EditRole);
|
||||
model->setData(index, QVariant::fromValue(lineEdit->getKey()) , Qt::EditRole);
|
||||
else
|
||||
QItemDelegate::setModelData(editor, model, index);
|
||||
}
|
||||
|
||||
@@ -150,7 +150,7 @@ namespace BlackGui
|
||||
//! Formatted data
|
||||
ObjectType obj = this->getContainerOrFilteredContainer()[index.row()];
|
||||
BlackMisc::CPropertyIndex propertyIndex = this->columnToPropertyIndex(index.column());
|
||||
return formatter->data(role, obj.propertyByIndex(propertyIndex)).toQVariant();
|
||||
return formatter->data(role, obj.propertyByIndex(propertyIndex)).getQVariant();
|
||||
}
|
||||
|
||||
template <typename ObjectType, typename ContainerType>
|
||||
|
||||
Reference in New Issue
Block a user