38 #ifndef GAMMARAY_SINGLECOLUMNOBJECTPROXYMODEL_H
39 #define GAMMARAY_SINGLECOLUMNOBJECTPROXYMODEL_H
44 #if QT_VERSION < QT_VERSION_CHECK(4, 8, 0)
45 #include <QSortFilterProxyModel>
46 typedef QSortFilterProxyModel QIdentityProxyModel;
48 #include <QIdentityProxyModel>
64 : QIdentityProxyModel(parent)
76 QVariant
data(
const QModelIndex &proxyIndex,
int role = Qt::DisplayRole)
const
78 if (proxyIndex.isValid() && role == Qt::DisplayRole && proxyIndex.column() == 0) {
85 return QIdentityProxyModel::data(proxyIndex, role);
91 #endif // GAMMARAY_SINGLECOLUMNOBJECTPROXYMODEL_H
Definition: objectmodel.h:56
QVariant data(const QModelIndex &proxyIndex, int role=Qt::DisplayRole) const
Definition: singlecolumnobjectproxymodel.h:76
SingleColumnObjectProxyModel(QObject *parent=0)
Definition: singlecolumnobjectproxymodel.h:63
Definition: endpoint.h:41
Declares various utility methods needed when writing a GammaRay plugin.
QString displayString(const QObject *object)
A QIdentityProxyModel for generic Objects.
Definition: singlecolumnobjectproxymodel.h:56
Declares the public object model roles.