33 #ifndef GAMMARAY_SINGLECOLUMNOBJECTPROXYMODEL_H
34 #define GAMMARAY_SINGLECOLUMNOBJECTPROXYMODEL_H
39 #if QT_VERSION < QT_VERSION_CHECK(4, 8, 0)
40 #include <QSortFilterProxyModel>
41 typedef QSortFilterProxyModel QIdentityProxyModel;
43 #include <QIdentityProxyModel>
59 : QIdentityProxyModel(parent)
71 QVariant
data(
const QModelIndex &proxyIndex,
int role = Qt::DisplayRole)
const
73 if (proxyIndex.isValid() && role == Qt::DisplayRole && proxyIndex.column() == 0) {
80 return QIdentityProxyModel::data(proxyIndex, role);
86 #endif // GAMMARAY_SINGLECOLUMNOBJECTPROXYMODEL_H