mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
allow pasting of features in attribute table
This commit is contained in:
parent
1e46196937
commit
9b34202dba
@ -536,6 +536,12 @@ void QgsAttributeTableDialog::on_mCopySelectedRowsButton_clicked()
|
||||
QgisApp::instance()->editCopy( mLayer );
|
||||
}
|
||||
|
||||
void QgsAttributeTableDialog::on_mPasteFeatures_clicked()
|
||||
{
|
||||
QgisApp::instance()->editPaste( mLayer );
|
||||
}
|
||||
|
||||
|
||||
void QgsAttributeTableDialog::on_mZoomMapToSelectedRowsButton_clicked()
|
||||
{
|
||||
QgisApp::instance()->mapCanvas()->zoomToSelected( mLayer );
|
||||
|
@ -73,6 +73,10 @@ class APP_EXPORT QgsAttributeTableDialog : public QDialog, private Ui::QgsAttrib
|
||||
* Copies selected rows to the clipboard
|
||||
*/
|
||||
void on_mCopySelectedRowsButton_clicked();
|
||||
/**
|
||||
* Paste features from the clipboard
|
||||
*/
|
||||
void on_mPasteFeatures_clicked();
|
||||
/**
|
||||
* Toggles editing mode
|
||||
*/
|
||||
|
@ -348,6 +348,35 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="mPasteFeatures">
|
||||
<property name="toolTip">
|
||||
<string>Paste features from clipboard (Ctrl+V)</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../../images/images.qrc">
|
||||
<normaloff>:/images/themes/default/mActionEditPaste.png</normaloff>:/images/themes/default/mActionEditPaste.png</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>18</width>
|
||||
<height>18</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+V</string>
|
||||
</property>
|
||||
<property name="autoRaise">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Line" name="line_3">
|
||||
<property name="orientation">
|
||||
|
Loading…
x
Reference in New Issue
Block a user