From ccf35d4cbd97bf2a60217ee227609b45886ae497 Mon Sep 17 00:00:00 2001 From: Samuel Johnson Date: Mon, 3 Jun 2024 17:30:00 -0700 Subject: [PATCH] Replaced all instances of copy in these changes with duplicate --- src/gui/vector/qgsattributeactiondialog.cpp | 8 ++++---- src/gui/vector/qgsattributeactiondialog.h | 2 +- src/ui/qgsattributeactiondialogbase.ui | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/gui/vector/qgsattributeactiondialog.cpp b/src/gui/vector/qgsattributeactiondialog.cpp index 0a06d2673c07..450be0491d8f 100644 --- a/src/gui/vector/qgsattributeactiondialog.cpp +++ b/src/gui/vector/qgsattributeactiondialog.cpp @@ -52,7 +52,7 @@ QgsAttributeActionDialog::QgsAttributeActionDialog( const QgsActionManager &acti connect( mMoveDownButton, &QAbstractButton::clicked, this, &QgsAttributeActionDialog::moveDown ); connect( mRemoveButton, &QAbstractButton::clicked, this, &QgsAttributeActionDialog::remove ); connect( mAddButton, &QAbstractButton::clicked, this, &QgsAttributeActionDialog::insert ); - connect( mCopyButton, &QAbstractButton::clicked, this, &QgsAttributeActionDialog::copy ); + connect( mDuplicateButton, &QAbstractButton::clicked, this, &QgsAttributeActionDialog::duplicate ); connect( mAddDefaultActionsButton, &QAbstractButton::clicked, this, &QgsAttributeActionDialog::addDefaultActions ); init( actions, mLayer->attributeTableConfig() ); @@ -297,7 +297,7 @@ void QgsAttributeActionDialog::insert() } } -void QgsAttributeActionDialog::copy() +void QgsAttributeActionDialog::duplicate() { // Add the action details as a new row in the table. const int pos = mAttributeActionTable->rowCount(); @@ -316,7 +316,7 @@ void QgsAttributeActionDialog::copy() mLayer ); - dlg.setWindowTitle( tr( "Copy Action" ) ); + dlg.setWindowTitle( tr( "Duplicate Action" ) ); if ( dlg.exec() ) { @@ -344,7 +344,7 @@ void QgsAttributeActionDialog::updateButtons() } mRemoveButton->setEnabled( hasSelection ); - mCopyButton->setEnabled( hasSelection ); + mDuplicateButton->setEnabled( hasSelection ); } void QgsAttributeActionDialog::addDefaultActions() diff --git a/src/gui/vector/qgsattributeactiondialog.h b/src/gui/vector/qgsattributeactiondialog.h index b52cce4d5a93..24cc48797af3 100644 --- a/src/gui/vector/qgsattributeactiondialog.h +++ b/src/gui/vector/qgsattributeactiondialog.h @@ -81,7 +81,7 @@ class GUI_EXPORT QgsAttributeActionDialog: public QWidget, private Ui::QgsAttrib void moveDown(); void remove(); void insert(); - void copy(); + void duplicate(); void addDefaultActions(); void itemDoubleClicked( QTableWidgetItem *item ); void updateButtons(); diff --git a/src/ui/qgsattributeactiondialogbase.ui b/src/ui/qgsattributeactiondialogbase.ui index 161e1b7b9cc6..0e618877069c 100644 --- a/src/ui/qgsattributeactiondialogbase.ui +++ b/src/ui/qgsattributeactiondialogbase.ui @@ -116,9 +116,9 @@ - + - Copy an action + Duplicate an action @@ -287,7 +287,7 @@ mMoveDownButton mRemoveButton mAddButton - mCopyButton + mDuplicateButton mAddDefaultActionsButton mShowInAttributeTable mAttributeTableWidgetType