17 if (parent.isValid()) {
32 if (parent.isValid()) {
44 if (orientation==Qt::Horizontal && role==Qt::DisplayRole) {
70 }
else if (orientation==Qt::Vertical && role==Qt::DisplayRole) {
83 if (index.row() < 0 || index.row() >= spc->count()) {
90 int col = index.column();
91 int row = index.row();
95 if (role == Qt::DisplayRole) {
106 res = cal->get_Name();
QxrdCalibrantLibraryWPtr m_CalibrantLibrary
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const
QSharedPointer< QxrdCalibrantLibrary > QxrdCalibrantLibraryPtr
QxrdCalibrantDSpacingsWPtr m_CalibrantDSpacings
~QxrdCalibrantDSpacingsModel()
virtual QVariant data(const QModelIndex &index, int role) const
QxrdCalibrantDSpacingsModel(QxrdCalibrantLibraryPtr cal, QxrdCalibrantDSpacingsPtr vec)
QSharedPointer< QxrdCalibrant > QxrdCalibrantPtr
virtual QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
QSharedPointer< QxrdCalibrantDSpacings > QxrdCalibrantDSpacingsPtr
void everythingChanged(int nrows)
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const