Skip to content

Commit eeae09c

Browse files
committed
Show NTv2 in datum transform dialog tooltip and do case insensitive filename compare on win
1 parent b1d1f10 commit eeae09c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/gui/qgsdatumtransformdialog.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ void QgsDatumTransformDialog::load()
7777
continue;
7878

7979
QString toolTipString;
80+
if ( gridShiftTransformation( item->text( i ) ) )
81+
{
82+
toolTipString.append( QString( "<p><b>NTv2</b></p>" ) );
83+
}
84+
8085
if ( epsgNr > 0 )
8186
toolTipString.append( QString( "<p><b>EPSG Transformations Code:</b> %1</p>" ).arg( epsgNr ) );
8287

@@ -181,7 +186,11 @@ bool QgsDatumTransformDialog::testGridShiftFileAvailability( QTreeWidgetItem* it
181186
QStringList::const_iterator fileIt = fileList.constBegin();
182187
for ( ; fileIt != fileList.constEnd(); ++fileIt )
183188
{
184-
if ( *fileIt == filename )
189+
#if defined(Q_OS_WIN)
190+
if ( fileIt->compare( filename, Qt::CaseInsensitive ) == 0 )
191+
#else
192+
if ( fileIt->compare( filename ) == 0 )
193+
#endif //Q_OS_WIN
185194
{
186195
return true;
187196
}

0 commit comments

Comments
 (0)