Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Better name
  • Loading branch information
nyalldawson committed May 15, 2023
1 parent ecff6b9 commit 83d1e6c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Expand Up @@ -78,7 +78,7 @@ Returns a list of additional layer options which are passed to OGR.
Refer to the OGR documentation for the target format for available options.
%End

QgsCoordinateReferenceSystem crsObject() const;
QgsCoordinateReferenceSystem crs() const;
%Docstring
Returns the CRS chosen for export

Expand Down
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -8448,7 +8448,7 @@ QString QgisApp::saveAsVectorFileGeneral( QgsVectorLayer *vlayer, bool symbology
Qgis::WkbType forcedGeometryType = dialog->geometryType();

QgsCoordinateTransform ct;
destCRS = dialog->crsObject();
destCRS = dialog->crs();

if ( destCRS.isValid() )
{
Expand Down
2 changes: 1 addition & 1 deletion src/gui/ogr/qgsvectorlayersaveasdialog.cpp
Expand Up @@ -899,7 +899,7 @@ QString QgsVectorLayerSaveAsDialog::format() const
return mFormatComboBox->currentData().toString();
}

QgsCoordinateReferenceSystem QgsVectorLayerSaveAsDialog::crsObject() const
QgsCoordinateReferenceSystem QgsVectorLayerSaveAsDialog::crs() const
{
return mSelectedCrs;
}
Expand Down
2 changes: 1 addition & 1 deletion src/gui/ogr/qgsvectorlayersaveasdialog.h
Expand Up @@ -108,7 +108,7 @@ class GUI_EXPORT QgsVectorLayerSaveAsDialog : public QDialog, private Ui::QgsVec
* Returns the CRS chosen for export
* \since QGIS 3.14
*/
QgsCoordinateReferenceSystem crsObject() const;
QgsCoordinateReferenceSystem crs() const;

/**
* Returns a list of attributes which are selected for saving.
Expand Down
2 changes: 1 addition & 1 deletion tests/src/app/testqgsvectorlayersaveasdialog.cpp
Expand Up @@ -134,7 +134,7 @@ void TestQgsVectorLayerSaveAsDialog::testAttributesAsDisplayedValues()
QCOMPARE( mAttributeTable->item( 0, 3 )->flags(), Qt::ItemIsUserCheckable );

// Check that we can get a custom CRS with crsObject()
QCOMPARE( d.crsObject(), crs ) ;
QCOMPARE( d.crs(), crs ) ;

//d.exec();
}
Expand Down

0 comments on commit 83d1e6c

Please sign in to comment.