Rev 201 | Rev 205 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 201 | Rev 202 | ||
---|---|---|---|
Line 608... | Line 608... | ||
608 | {
|
608 | {
|
609 | 609 | ||
610 | 610 | ||
611 | const QAbstractItemModel * model = index.model(); |
611 | const QAbstractItemModel * model = index.model(); |
612 | FileForm *flFrm = static_cast<FileForm*>(editor); |
612 | FileForm *flFrm = static_cast<FileForm*>(editor); |
613 | QVariant currentData = model->data(index,0); |
613 | QVariant currentData = model->data(index,Qt::EditRole); |
- | 614 | ||
- | 615 | // QVariant currentData = QSqlTableModel::data(index, 0);
|
|
614 | QByteArray bytes = currentData.toByteArray(); |
616 | QByteArray bytes = currentData.toByteArray(); |
615 | if (currentData.isValid()) flFrm->setData(bytes); |
617 | if (currentData.isValid()) flFrm->setData(bytes); |
616 | else return; |
618 | else return; |
617 | 619 | ||
618 | }
|
620 | }
|