325,6 → 325,7 |
IconForm *icnFrm = static_cast<IconForm*>(editor); |
if (!(icnFrm->dataIsChanged())) return; |
|
if (!(icnFrm->pixmap().isNull())){ // åñëè íå óäàëèëè èêîíêó |
m_pxPicture = icnFrm->pixmap(); |
QImage currentImage = m_pxPicture.toImage(); |
QByteArray bytes; |
341,10 → 342,13 |
// int heigh = m_pxPicture.height(); |
// tblView->setRowHeight(index.row(), heigh + 10); |
// model->submitAll(); |
} |
else { // èêîíêó óäàëèëè |
QVariant val_null; |
model->setData(index, val_null, Qt::EditRole); |
} |
|
|
|
|
// model->setData(index, value); |
} |
|
376,7 → 380,6 |
|
QVariant currentImage = model->data(index,0); |
|
|
QByteArray bytes = currentImage.toByteArray(); |
// QImage image; |
// image.loadFromData(bytes); |
387,6 → 390,8 |
|
} |
else { |
int i; |
i++; |
//QItemDelegate::paint(painter, option, index); |
return; |
} |