Skip to content
Permalink
Browse files

Add layer name to datum transform dialog title

  • Loading branch information
mhugent committed Oct 23, 2013
1 parent a919eed commit 028e7d90e47b37880d5a2c6203608ec2717b12ee
@@ -1,9 +1,10 @@
#include "qgsdatumtransformdialog.h"
#include "qgscoordinatetransform.h"

QgsDatumTransformDialog::QgsDatumTransformDialog( const QList< QList< int > >& dt, QWidget* parent, Qt::WindowFlags f ): QDialog( parent, f )
QgsDatumTransformDialog::QgsDatumTransformDialog( const QString& layerName, const QList< QList< int > >& dt, QWidget* parent, Qt::WindowFlags f ): QDialog( parent, f )
{
setupUi( this );
setWindowTitle( tr( "Select datum transformations for layer" ) + " " + layerName );
QList< QList< int > >::const_iterator it = dt.constBegin();
for ( ; it != dt.constEnd(); ++it )
{
@@ -6,7 +6,7 @@
class QgsDatumTransformDialog: public QDialog, private Ui::QgsDatumTransformDialogBase
{
public:
QgsDatumTransformDialog( const QList< QList< int > >& dt, QWidget * parent = 0, Qt::WindowFlags f = 0 );
QgsDatumTransformDialog( const QString& layerName, const QList< QList< int > >& dt, QWidget * parent = 0, Qt::WindowFlags f = 0 );
~QgsDatumTransformDialog();

QList< int > selectedDatumTransform();
@@ -1567,7 +1567,7 @@ void QgsMapCanvas::getDatumTransformInfo( QgsMapLayer* ml, const QString& srcAut
}

//if several possibilities: present dialog
QgsDatumTransformDialog d( dt );
QgsDatumTransformDialog d( ml->name(), dt );
if ( mMapRenderer && ( d.exec() == QDialog::Accepted ) )
{
int srcTransform = -1;
@@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>346</width>
<width>569</width>
<height>237</height>
</rect>
</property>

0 comments on commit 028e7d9

Please sign in to comment.
You can’t perform that action at this time.