Skip to content

Commit

Permalink
Show operation type in projection selection widget for selected CRS
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 11, 2021
1 parent b6f60f6 commit 5a785e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/qgsprojectionselectiontreewidget.cpp
Expand Up @@ -23,6 +23,7 @@
#include "qgsrectangle.h"
#include "qgscoordinatereferencesystemregistry.h"
#include "qgsdatums.h"
#include "qgsprojoperation.h"

//qt includes
#include <QFileInfo>
Expand Down Expand Up @@ -995,6 +996,9 @@ void QgsProjectionSelectionTreeWidget::updateBoundsPreview()

}

const QgsProjOperation operation = currentCrs.operation();
properties << tr( "Method: %1" ).arg( operation.description() );

const QString propertiesString = QStringLiteral( "<dt><b>%1</b></dt><dd><ul><li>%2</li></ul></dd>" ).arg( tr( "Properties" ),
properties.join( QStringLiteral( "</li><li>" ) ) );

Expand Down

0 comments on commit 5a785e6

Please sign in to comment.