File tree 3 files changed +1
-15
lines changed
3 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -257,8 +257,6 @@ Create path component replacing path separators
257
257
:rtype: str
258
258
%End
259
259
260
- void setActions( QList<QAction *> actions );
261
-
262
260
static void deleteLater( QVector<QgsDataItem *> &items );
263
261
264
262
void moveToThread( QThread *targetThread );
Original file line number Diff line number Diff line change @@ -178,14 +178,6 @@ QVector<QgsDataItem *> QgsGeoNodeServiceItem::createChildren()
178
178
skipProvider = true ;
179
179
}
180
180
181
- // add new action menus to the layer item
182
- QList<QAction *> actions;
183
- #if 0
184
- QAction *actionCopyStyle = new QAction( tr( "Copy Style" ), this );
185
- QAction *actionPasteStyle = new QAction( tr( "Paste Style" ), this );
186
- actions << actionCopyStyle << actionPasteStyle;
187
- #endif
188
-
189
181
Q_FOREACH ( QgsDataItem *item, serviceItems.keys () )
190
182
{
191
183
QString providerKey = serviceItems.value ( item );
@@ -200,7 +192,6 @@ QVector<QgsDataItem *> QgsGeoNodeServiceItem::createChildren()
200
192
item->removeChildItem ( subItem );
201
193
subItem->setParent ( this );
202
194
replacePath ( subItem, providerKey.toLower () + QStringLiteral ( " :/" ), pathPrefix );
203
- subItem->setActions ( actions );
204
195
children.append ( subItem );
205
196
}
206
197
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ class CORE_EXPORT QgsDataItem : public QObject
141
141
/* * Returns the list of actions available for this item. This is usually used for the popup menu on right-clicking
142
142
* the item. Subclasses should override this to provide actions.
143
143
*/
144
- virtual QList<QAction *> actions () { return mActions ; }
144
+ virtual QList<QAction *> actions () { return QList<QAction *>() ; }
145
145
146
146
/* * Returns whether the item accepts drag and dropped layers - e.g. for importing a dataset to a provider.
147
147
* Subclasses should override this and handleDrop() to accept dropped layers.
@@ -228,8 +228,6 @@ class CORE_EXPORT QgsDataItem : public QObject
228
228
void setToolTip ( const QString &msg ) { mToolTip = msg; }
229
229
QString toolTip () const { return mToolTip ; }
230
230
231
- void setActions ( QList<QAction *> actions ) { mActions = actions; }
232
-
233
231
// deleteLater() items anc clear the vector
234
232
static void deleteLater ( QVector<QgsDataItem *> &items );
235
233
@@ -267,7 +265,6 @@ class CORE_EXPORT QgsDataItem : public QObject
267
265
QString mIconName ;
268
266
QIcon mIcon ;
269
267
QMap<QString, QIcon> mIconMap ;
270
- QList<QAction *> mActions ;
271
268
272
269
public slots:
273
270
You can’t perform that action at this time.
0 commit comments