/trunk/ClassEditor/delegate.cpp |
---|
308,7 → 308,9 |
} |
else { |
//QItemDelegate::paint(painter, option, index); |
return; |
return; |
} |
icnFrm->setPixmap(m_pxPicture); |
} |
321,6 → 323,8 |
QAbstractItemModel *model, |
const QModelIndex& index) const { |
IconForm *icnFrm = static_cast<IconForm*>(editor); |
if (!(icnFrm->dataIsChanged())) return; |
m_pxPicture = icnFrm->pixmap(); |
QImage currentImage = m_pxPicture.toImage(); |
QByteArray bytes; |