Skip to content

Commit

Permalink
Show NTv2 in datum transform dialog tooltip and do case insensitive f…
Browse files Browse the repository at this point in the history
…ilename compare on win
  • Loading branch information
mhugent committed Jan 30, 2014
1 parent b1d1f10 commit eeae09c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/gui/qgsdatumtransformdialog.cpp
Expand Up @@ -77,6 +77,11 @@ void QgsDatumTransformDialog::load()
continue;

QString toolTipString;
if ( gridShiftTransformation( item->text( i ) ) )
{
toolTipString.append( QString( "<p><b>NTv2</b></p>" ) );
}

if ( epsgNr > 0 )
toolTipString.append( QString( "<p><b>EPSG Transformations Code:</b> %1</p>" ).arg( epsgNr ) );

Expand Down Expand Up @@ -181,7 +186,11 @@ bool QgsDatumTransformDialog::testGridShiftFileAvailability( QTreeWidgetItem* it
QStringList::const_iterator fileIt = fileList.constBegin();
for ( ; fileIt != fileList.constEnd(); ++fileIt )
{
if ( *fileIt == filename )
#if defined(Q_OS_WIN)
if ( fileIt->compare( filename, Qt::CaseInsensitive ) == 0 )
#else
if ( fileIt->compare( filename ) == 0 )
#endif //Q_OS_WIN
{
return true;
}
Expand Down

0 comments on commit eeae09c

Please sign in to comment.