Nepomuk
resourcemodel.h
Go to the documentation of this file.
78 ResourceColumn = 0,
81 ResourceTypeColumn = 1,
85 };
94 ResourceRole = 7766897,
100 ResourceTypeRole = 687585,
106 };
146 virtual QVariant headerData( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const;
Base class for all models providing a plain list of resources.
Definition: resourcemodel.h:58
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Handles most roles typically used in applications like Qt::DisplayRole, Qt::ToolTipRole,...
virtual QModelIndex parent(const QModelIndex &child) const
The default implementation returns an invalid QModelIndex, thus providing a plain list.
virtual bool setData(const QModelIndex &index, const QVariant &value, int role)
Provided for future extensions.
ResourceRoles
Custom roles that can be accessed for example in delegates.
Definition: resourcemodel.h:90
virtual QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
Provides header data for the supported columns.
virtual int columnCount(const QModelIndex &parent) const
The default implementation returns 2 with the first column representing the resource itself and the s...
virtual Resource resourceForIndex(const QModelIndex &index) const =0
Get the Resource which corresponds to index.
virtual QMimeData * mimeData(const QModelIndexList &indexes) const
Stores the resource URIs via KUrl::List::populateMimeData() and as a specific "application/x-nepomuk-...
virtual Qt::ItemFlags flags(const QModelIndex &index) const
Reimplemented to support dragging of resources out of the model.
virtual QModelIndex indexForResource(const Resource &res) const =0
Get the index for a resource.
virtual QStringList mimeTypes() const
ResourceModelColumns
The columns supported by ResourceModel are identified by this enumeration.
Definition: resourcemodel.h:76
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.