mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Tweaks for raster layer props and got rid of show debug overlay option
git-svn-id: http://svn.osgeo.org/qgis/trunk@9269 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
4af184e49c
commit
dad407e494
@ -454,8 +454,6 @@ void QgsRasterLayerProperties::setMinimumMaximumEstimateWarning()
|
||||
void QgsRasterLayerProperties::sync()
|
||||
{
|
||||
QgsDebugMsg( "called." );
|
||||
cboxShowDebugInfo->hide();
|
||||
|
||||
QgsDebugMsg( "sync populate symbology tab" );
|
||||
/*
|
||||
* Symbology Tab
|
||||
@ -786,15 +784,11 @@ void QgsRasterLayerProperties::sync()
|
||||
/*
|
||||
* General Tab
|
||||
*/
|
||||
cboxShowDebugInfo->hide();
|
||||
|
||||
//these properties (layer name and label) are provided by the qgsmaplayer superclass
|
||||
leLayerSource->setText( mRasterLayer->source() );
|
||||
leDisplayName->setText( mRasterLayer->name() );
|
||||
|
||||
//update the debug checkbox
|
||||
cboxShowDebugInfo->setChecked( mRasterLayer->getShowDebugOverlayFlag() );
|
||||
|
||||
//display the raster dimensions and no data value
|
||||
if ( mRasterLayerIsGdal )
|
||||
{
|
||||
@ -1418,15 +1412,7 @@ void QgsRasterLayerProperties::apply()
|
||||
*/
|
||||
mRasterLayer->setLayerName( leDisplayName->text() );
|
||||
|
||||
//see if the user would like debug overlays
|
||||
if ( cboxShowDebugInfo->isChecked() == true )
|
||||
{
|
||||
mRasterLayer->setShowDebugOverlayFlag( true );
|
||||
}
|
||||
else
|
||||
{
|
||||
mRasterLayer->setShowDebugOverlayFlag( false );
|
||||
}
|
||||
mRasterLayer->setShowDebugOverlayFlag( true );
|
||||
|
||||
// set up the scale based layer visibility stuff....
|
||||
mRasterLayer->setScaleBasedVisibility( chkUseScaleDependentRendering->isChecked() );
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user