Skip to content

Commit

Permalink
Add layer name to datum transform dialog title
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Oct 23, 2013
1 parent a919eed commit 028e7d9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/gui/qgsdatumtransformdialog.cpp
@@ -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 )
{
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsdatumtransformdialog.h
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsmapcanvas.cpp
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/ui/qgsdatumtransformdialogbase.ui
Expand Up @@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>346</width>
<width>569</width>
<height>237</height>
</rect>
</property>
Expand Down

0 comments on commit 028e7d9

Please sign in to comment.