Fixed compile problem under Qt 3.1.2 related to GDAL driver detection code. Qt 3.1.2 does not support the case sensitive argument to QString::startsWith and QString::endsWith

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@860 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
gsherman 2004-02-16 15:47:10 +00:00
parent afb7044aa8
commit b751be01bb

View File

@ -697,7 +697,10 @@ static bool isSupportedRasterDriver_(QString const &driverName)
// whereby GDAL slightly changes driver description string case,
// in which case we'd catch it here. Not that that would likely
// happen, but if it does, we'll already compensate.
if ( driverName.startsWith(supportedRasterFormats_[i], false) )
// GS - At Qt 3.1.2, the case sensitive argument. So we change the
// driverName to lower case before testing
QString format = supportedRasterFormats_[i];
if ( driverName.lower().startsWith(format.lower()) )
{
return true;
}