@@ -24,7 +24,8 @@ class QgsComposerModel : QAbstractItemModel
24
24
public:
25
25
26
26
/**Constructor
27
- * @param composition parent composition
27
+ * @param composition composition to attach to
28
+ * @param parent parent object
28
29
*/
29
30
explicit QgsComposerModel( QgsComposition* composition, QObject* parent = 0 );
30
31
@@ -39,6 +40,11 @@ class QgsComposerModel : QAbstractItemModel
39
40
Qt::ItemFlags flags( const QModelIndex & index ) const;
40
41
bool setData( const QModelIndex & index, const QVariant & value, int role );
41
42
QVariant headerData( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const;
43
+ Qt::DropActions supportedDropActions() const;
44
+ virtual QStringList mimeTypes() const;
45
+ virtual QMimeData* mimeData( const QModelIndexList &indexes ) const;
46
+ bool dropMimeData( const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent );
47
+ bool removeRows( int row, int count, const QModelIndex & parent = QModelIndex() );
42
48
43
49
/**Clears all items from z-order list and resets the model
44
50
* @note added in QGIS 2.5
@@ -164,6 +170,7 @@ class QgsComposerModel : QAbstractItemModel
164
170
* @param item item to update
165
171
* @see updateItemLockStatus
166
172
* @see updateItemVisibility
173
+ * @see updateItemSelectStatus
167
174
* @note added in QGIS 2.5
168
175
*/
169
176
void updateItemDisplayName( QgsComposerItem *item );
@@ -172,6 +179,7 @@ class QgsComposerModel : QAbstractItemModel
172
179
* @param item item to update
173
180
* @see updateItemDisplayName
174
181
* @see updateItemVisibility
182
+ * @see updateItemSelectStatus
175
183
* @note added in QGIS 2.5
176
184
*/
177
185
void updateItemLockStatus( QgsComposerItem *item );
@@ -180,10 +188,20 @@ class QgsComposerModel : QAbstractItemModel
180
188
* @param item item to update
181
189
* @see updateItemDisplayName
182
190
* @see updateItemLockStatus
191
+ * @see updateItemSelectStatus
183
192
* @note added in QGIS 2.5
184
193
*/
185
194
void updateItemVisibility( QgsComposerItem *item );
186
195
196
+ /**Must be called when an item's selection status changes
197
+ * @param item item to update
198
+ * @see updateItemDisplayName
199
+ * @see updateItemVisibility
200
+ * @see updateItemLockStatus
201
+ * @note added in QGIS 2.5
202
+ */
203
+ void updateItemSelectStatus( QgsComposerItem *item );
204
+
187
205
public slots:
188
206
189
207
/**Sets an item as the current selection from a QModelIndex
0 commit comments