5 (QWeakPointer<QcepImageDataBase> img)
13 QSharedPointer<QcepImageDataBase> img(
m_Image);
16 return img->get_Height();
24 QSharedPointer<QcepImageDataBase> img(
m_Image);
27 return img->get_Width();
35 QVariant res = QVariant();
37 if (!index.isValid()) {
39 }
else if (role == Qt::DisplayRole) {
40 QSharedPointer<QcepImageDataBase> img(
m_Image);
43 double v = img->getImageData(index.column(), index.row());
int columnCount(const QModelIndex &parent=QModelIndex()) const
QcepImageDataSpreadsheetModel(QWeakPointer< QcepImageDataBase > img)
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
int rowCount(const QModelIndex &parent=QModelIndex()) const
QWeakPointer< QcepImageDataBase > m_Image