fix deprecation warnings

git-svn-id: http://svn.osgeo.org/qgis/trunk@15314 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
jef 2011-03-03 02:04:22 +00:00
parent f6c16778ab
commit 9cb502e8df

View File

@ -535,7 +535,7 @@ void QgsSpatialQueryDialog::populateCbTargetLayer()
}
addCbLayer( true, lyr );
mMapIdVectorLayers.insert( lyr->getLayerID(), lyr );
mMapIdVectorLayers.insert( lyr->id(), lyr );
}
cbTargetLayer->setCurrentIndex( 0 );
cbTargetLayer->blockSignals( false );
@ -674,11 +674,11 @@ void QgsSpatialQueryDialog::zoomFeature( QgsVectorLayer* lyr, int fid )
{
if ( hasMsg )
{
long epsgMapcanvas = srcMapcanvas.epsg();
QString crsMapcanvas = srcMapcanvas.authid();
bool isFly = mIface->mapCanvas()->mapRenderer()->hasCrsTransformEnabled();
QString msgFly = tr( "Map \"%1\" \"on the fly\" transformation." ).arg( isFly ? tr( "enable" ) : tr( "disable" ) );
QString msg = tr( "Coordinate reference system(CRS) of\n\"%1\" is invalid(see CRS of provider)." ).arg( lyr->name() );
msg.append( tr( "\n\nEPSG of map is %1.\n%2." ).arg( epsgMapcanvas ).arg( msgFly ) );
msg.append( tr( "\n\nCRS of map is %1.\n%2." ).arg( crsMapcanvas ).arg( msgFly ) );
msg.append( "\n\nUsing CRS of map for all features!" );
QMessageBox::warning( this, tr( "Zoom to feature" ), msg, QMessageBox::Ok );
@ -1006,7 +1006,7 @@ void QgsSpatialQueryDialog::signal_qgis_layerWasAdded( QgsMapLayer* mapLayer )
cbResultFor->setEnabled( true );
}
addCbLayer( false, lyr );
mMapIdVectorLayers.insert( lyr->getLayerID(), lyr );
mMapIdVectorLayers.insert( lyr->id(), lyr );
} // QgsSpatialQueryDialog::signal_qgis_layerWasAdded(QgsMapLayer* mapLayer)