Skip to content

Commit

Permalink
Tweaks for raster layer props and got rid of show debug overlay option
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@9269 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Sep 5, 2008
1 parent 4af184e commit dad407e
Show file tree
Hide file tree
Showing 2 changed files with 332 additions and 517 deletions.
16 changes: 1 addition & 15 deletions src/app/qgsrasterlayerproperties.cpp
Expand Up @@ -454,8 +454,6 @@ void QgsRasterLayerProperties::setMinimumMaximumEstimateWarning()
void QgsRasterLayerProperties::sync()
{
QgsDebugMsg( "called." );
cboxShowDebugInfo->hide();

QgsDebugMsg( "sync populate symbology tab" );
/*
* Symbology Tab
Expand Down Expand Up @@ -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 )
{
Expand Down Expand Up @@ -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() );
Expand Down

0 comments on commit dad407e

Please sign in to comment.