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
Definition: objectmodel.h:51
QVariant data(const QModelIndex &proxyIndex, int role=Qt::DisplayRole) const
Definition: singlecolumnobjectproxymodel.h:71
SingleColumnObjectProxyModel(QObject *parent=0)
Definition: singlecolumnobjectproxymodel.h:58
Declares various utility methods needed when writing a GammaRay plugin.
QString displayString(const QObject *object)
A QIdentityProxyModel for generic Objects.
Definition: singlecolumnobjectproxymodel.h:51
Declares the public object model roles.