Subversion Repositories OpenInventory

Compare Revisions

Ignore whitespace Rev 202 → Rev 201

/trunk/DBViewer/delegate.cpp
610,9 → 610,7
 
const QAbstractItemModel * model = index.model();
FileForm *flFrm = static_cast<FileForm*>(editor);
QVariant currentData = model->data(index,Qt::EditRole);
 
// QVariant currentData = QSqlTableModel::data(index, 0);
QVariant currentData = model->data(index,0);
QByteArray bytes = currentData.toByteArray();
if (currentData.isValid()) flFrm->setData(bytes);
else return;