Хранилища Subversion OpenInventory

Редакция

Редакция 165 | К новейшей редакции | Весь файл | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS

Редакция 165 Редакция 167
Строка 306... Строка 306...
306
306
       if (currentImage.isValid()) {
307
307
            m_pxPicture.loadFromData(bytes);
308
308
       }
309
309
       else {
310
310
           //QItemDelegate::paint(painter, option, index);
-
 
311
-
 
312
311
313
           return;
312
314
       }
313
315
       icnFrm->setPixmap(m_pxPicture);
314
316
   }
315
317
316
318
Строка 319... Строка 321...
319
321
   void CPictureDelegate::setModelData(
320
322
               QWidget *editor,
321
323
               QAbstractItemModel *model,
322
324
               const QModelIndex& index) const {
323
325
       IconForm *icnFrm = static_cast<IconForm*>(editor);
-
 
326
       if (!(icnFrm->dataIsChanged())) return;
-
 
327
324
328
       m_pxPicture = icnFrm->pixmap();
325
329
       QImage currentImage = m_pxPicture.toImage();
326
330
          QByteArray bytes;
327
331
          QBuffer buffer(&bytes);
328
332
          buffer.open(QIODevice::WriteOnly);