Skip to content

Commit 5881623

Browse files
author
timlinux
committed
Tweaks for raster layer props and got rid of show debug overlay option
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9269 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 4500133 commit 5881623

File tree

2 files changed

+332
-517
lines changed

2 files changed

+332
-517
lines changed

src/app/qgsrasterlayerproperties.cpp

+1-15
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,6 @@ void QgsRasterLayerProperties::setMinimumMaximumEstimateWarning()
454454
void QgsRasterLayerProperties::sync()
455455
{
456456
QgsDebugMsg( "called." );
457-
cboxShowDebugInfo->hide();
458-
459457
QgsDebugMsg( "sync populate symbology tab" );
460458
/*
461459
* Symbology Tab
@@ -786,15 +784,11 @@ void QgsRasterLayerProperties::sync()
786784
/*
787785
* General Tab
788786
*/
789-
cboxShowDebugInfo->hide();
790787

791788
//these properties (layer name and label) are provided by the qgsmaplayer superclass
792789
leLayerSource->setText( mRasterLayer->source() );
793790
leDisplayName->setText( mRasterLayer->name() );
794791

795-
//update the debug checkbox
796-
cboxShowDebugInfo->setChecked( mRasterLayer->getShowDebugOverlayFlag() );
797-
798792
//display the raster dimensions and no data value
799793
if ( mRasterLayerIsGdal )
800794
{
@@ -1418,15 +1412,7 @@ void QgsRasterLayerProperties::apply()
14181412
*/
14191413
mRasterLayer->setLayerName( leDisplayName->text() );
14201414

1421-
//see if the user would like debug overlays
1422-
if ( cboxShowDebugInfo->isChecked() == true )
1423-
{
1424-
mRasterLayer->setShowDebugOverlayFlag( true );
1425-
}
1426-
else
1427-
{
1428-
mRasterLayer->setShowDebugOverlayFlag( false );
1429-
}
1415+
mRasterLayer->setShowDebugOverlayFlag( true );
14301416

14311417
// set up the scale based layer visibility stuff....
14321418
mRasterLayer->setScaleBasedVisibility( chkUseScaleDependentRendering->isChecked() );

0 commit comments

Comments
 (0)