Skip to content

Commit

Permalink
Replaced all instances of copy in these changes with duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
Speedrace4 committed Jun 4, 2024
1 parent 22aefde commit ccf35d4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/gui/vector/qgsattributeactiondialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() );
Expand Down Expand Up @@ -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();
Expand All @@ -316,7 +316,7 @@ void QgsAttributeActionDialog::copy()
mLayer
);

dlg.setWindowTitle( tr( "Copy Action" ) );
dlg.setWindowTitle( tr( "Duplicate Action" ) );

if ( dlg.exec() )
{
Expand Down Expand Up @@ -344,7 +344,7 @@ void QgsAttributeActionDialog::updateButtons()
}

mRemoveButton->setEnabled( hasSelection );
mCopyButton->setEnabled( hasSelection );
mDuplicateButton->setEnabled( hasSelection );
}

void QgsAttributeActionDialog::addDefaultActions()
Expand Down
2 changes: 1 addition & 1 deletion src/gui/vector/qgsattributeactiondialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
6 changes: 3 additions & 3 deletions src/ui/qgsattributeactiondialogbase.ui
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@
</widget>
</item>
<item row="1" column="5">
<widget class="QPushButton" name="mCopyButton">
<widget class="QPushButton" name="mDuplicateButton">
<property name="toolTip">
<string>Copy an action</string>
<string>Duplicate an action</string>
</property>
<property name="text">
<string/>
Expand Down Expand Up @@ -287,7 +287,7 @@
<tabstop>mMoveDownButton</tabstop>
<tabstop>mRemoveButton</tabstop>
<tabstop>mAddButton</tabstop>
<tabstop>mCopyButton</tabstop>
<tabstop>mDuplicateButton</tabstop>
<tabstop>mAddDefaultActionsButton</tabstop>
<tabstop>mShowInAttributeTable</tabstop>
<tabstop>mAttributeTableWidgetType</tabstop>
Expand Down

0 comments on commit ccf35d4

Please sign in to comment.