Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/kis_node_model.h
Context not available. | |||||
80 | // An index of a color label associated with the node | 80 | // An index of a color label associated with the node | ||
---|---|---|---|---|---|
81 | ColorLabelIndexRole, | 81 | ColorLabelIndexRole, | ||
82 | 82 | | |||
83 | // Instruct this model to update all its items' Qt::ItemIsDropEnabled flags in order to | ||||
84 | // reflect if the item allows an "onto" drop of the given QMimeData*. | ||||
85 | DropEnabled, | ||||
86 | | ||||
83 | /// This is to ensure that we can extend the data role in the future, since it's not possible to add a role after BeginThumbnailRole (due to "Hack") | 87 | /// This is to ensure that we can extend the data role in the future, since it's not possible to add a role after BeginThumbnailRole (due to "Hack") | ||
84 | ReservedRole = 99, | 88 | ReservedRole = 99, | ||
85 | 89 | | |||
Context not available. | |||||
119 | QStringList mimeTypes() const override; | 123 | QStringList mimeTypes() const override; | ||
120 | QMimeData* mimeData(const QModelIndexList & indexes) const override; | 124 | QMimeData* mimeData(const QModelIndexList & indexes) const override; | ||
121 | bool dropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) override; | 125 | bool dropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) override; | ||
126 | bool canDropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const override; | ||||
122 | Qt::DropActions supportedDragActions() const override; | 127 | Qt::DropActions supportedDragActions() const override; | ||
123 | Qt::DropActions supportedDropActions() const override; | 128 | Qt::DropActions supportedDropActions() const override; | ||
124 | bool hasDummiesFacade(); | 129 | bool hasDummiesFacade(); | ||
Context not available. | |||||
158 | 163 | | |||
159 | void regenerateItems(KisNodeDummy *dummy); | 164 | void regenerateItems(KisNodeDummy *dummy); | ||
160 | bool belongsToIsolatedGroup(KisNodeSP node) const; | 165 | bool belongsToIsolatedGroup(KisNodeSP node) const; | ||
166 | | ||||
167 | void setDropEnabled(const QMimeData *data); | ||||
168 | void updateDropEnabled(const QList<KisNodeSP> &nodes, QModelIndex parent = QModelIndex()); | ||||
161 | 169 | | |||
162 | private: | 170 | private: | ||
163 | 171 | | |||
Context not available. |