|
|
| ItemHistoryGraphModel (QWidget *const parent) |
| |
|
FilterAction | filterAction (const QModelIndex &index) const |
| |
|
bool | hasImage (const ItemInfo &info) |
| |
|
ItemInfo | imageInfo (const QModelIndex &index) const |
| |
| DECLARE_MODEL_DRAG_DROP_METHODS ItemListModel * | imageModel () const |
| | Returns an internal image model used for entries representing images.
|
| |
| QModelIndex | imageModelIndex (const QModelIndex &index) const |
| | If the given index is represented by the internal image model, return the image model's index.
|
| |
| QModelIndex | indexForInfo (const ItemInfo &info) const |
| | Note: There may be multiple indexes for an info.
|
| |
|
bool | isFilterAction (const QModelIndex &index) const |
| |
|
bool | isImage (const QModelIndex &index) const |
| |
|
Mode | mode () const |
| |
| void | setHistory (const ItemInfo &subject, const ItemHistoryGraph &graph=ItemHistoryGraph()) |
| | Set the history subject and the history graph.
|
| |
|
void | setMode (Mode mode) |
| |
|
ItemInfo | subject () const |
| |
|
|
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
| | QAbstractItemModel implementation.
|
| |
|
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| |
|
int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
| |
|
Qt::ItemFlags | flags (const QModelIndex &index) const override |
| |
|
bool | hasChildren (const QModelIndex &parent=QModelIndex()) const override |
| |
|
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const override |
| |
|
QModelIndex | parent (const QModelIndex &index) const override |
| |
|
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| |
|
bool | setData (const QModelIndex &index, const QVariant &value, int role) override |
| |
| | DragDropModelImplementation ()=default |
| | A class providing a sample implementation for a QAbstractItemModel redirecting drag-and-drop support to a handler.
|
| |
| virtual Qt::ItemFlags | dragDropFlags (const QModelIndex &index) const |
| | Call from your flags() method, adding the relevant drag drop flags.
|
| |
| Qt::ItemFlags | dragDropFlagsV2 (const QModelIndex &index) const |
| | This is an alternative approach to dragDropFlags().
|
| |
|
AbstractItemDragDropHandler * | dragDropHandler () const |
| |
|
bool | dropMimeData (const QMimeData *, Qt::DropAction, int, int, const QModelIndex &) |
| |
|
virtual bool | isDragEnabled (const QModelIndex &index) const |
| |
|
virtual bool | isDropEnabled (const QModelIndex &index) const |
| |
|
QMimeData * | mimeData (const QModelIndexList &indexes) const |
| |
|
QStringList | mimeTypes () const |
| |
|
void | setDragDropHandler (AbstractItemDragDropHandler *handler) |
| | Set a drag drop handler.
|
| |
| Qt::DropActions | supportedDropActions () const |
| | Implements the relevant QAbstractItemModel methods for drag and drop.
|
| |