@@ -1822,9 +1822,9 @@ void QgisApp::createActions()
18221822
18231823 connect ( mActionUndo , &QAction::triggered, mUndoWidget , &QgsUndoWidget::undo );
18241824 connect ( mActionRedo , &QAction::triggered, mUndoWidget , &QgsUndoWidget::redo );
1825- connect ( mActionCutFeatures , &QAction::triggered, this , [ = ] { editCut (); } );
1826- connect ( mActionCopyFeatures , &QAction::triggered, this , [ = ] { editCopy (); } );
1827- connect ( mActionPasteFeatures , &QAction::triggered, this , [ = ] { editPaste (); } );
1825+ connect ( mActionCutFeatures , &QAction::triggered, this , [ = ] { cutSelectionToClipboard (); } );
1826+ connect ( mActionCopyFeatures , &QAction::triggered, this , [ = ] { copySelectionToClipboard (); } );
1827+ connect ( mActionPasteFeatures , &QAction::triggered, this , [ = ] { pasteFromClipboard (); } );
18281828 connect ( mActionPasteAsNewVector , &QAction::triggered, this , &QgisApp::pasteAsNewVector );
18291829 connect ( mActionPasteAsNewMemoryVector , &QAction::triggered, this , [ = ] { pasteAsNewMemoryVector (); } );
18301830 connect ( mActionCopyStyle , &QAction::triggered, this , [ = ] { copyStyle (); } );
@@ -8084,7 +8084,7 @@ void QgisApp::addPart()
80848084}
80858085
80868086
8087- void QgisApp::editCut ( QgsMapLayer *layerContainingSelection )
8087+ void QgisApp::cutSelectionToClipboard ( QgsMapLayer *layerContainingSelection )
80888088{
80898089 // Test for feature support in this layer
80908090 QgsVectorLayer *selectionVectorLayer = qobject_cast<QgsVectorLayer *>( layerContainingSelection ? layerContainingSelection : activeLayer () );
@@ -8098,7 +8098,7 @@ void QgisApp::editCut( QgsMapLayer *layerContainingSelection )
80988098 selectionVectorLayer->endEditCommand ();
80998099}
81008100
8101- void QgisApp::editCopy ( QgsMapLayer *layerContainingSelection )
8101+ void QgisApp::copySelectionToClipboard ( QgsMapLayer *layerContainingSelection )
81028102{
81038103 QgsVectorLayer *selectionVectorLayer = qobject_cast<QgsVectorLayer *>( layerContainingSelection ? layerContainingSelection : activeLayer () );
81048104 if ( !selectionVectorLayer )
@@ -8113,7 +8113,7 @@ void QgisApp::clipboardChanged()
81138113 activateDeactivateLayerRelatedActions ( activeLayer () );
81148114}
81158115
8116- void QgisApp::editPaste ( QgsMapLayer *destinationLayer )
8116+ void QgisApp::pasteFromClipboard ( QgsMapLayer *destinationLayer )
81178117{
81188118 QgsVectorLayer *pasteVectorLayer = qobject_cast<QgsVectorLayer *>( destinationLayer ? destinationLayer : activeLayer () );
81198119 if ( !pasteVectorLayer )
0 commit comments