@@ -550,7 +550,7 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent,
550
550
}
551
551
else
552
552
{
553
- QgsDebugMsg ( " Tips are disabled" );
553
+ QgsDebugMsg ( " Tips are disabled" );
554
554
}
555
555
556
556
// finally show all the application settings as initialised above
@@ -1893,7 +1893,7 @@ void QgisApp::createToolBars()
1893
1893
mHelpToolBar ->addAction ( mActionHelpContents );
1894
1894
mHelpToolBar ->addAction ( QWhatsThis::createAction () );
1895
1895
mToolbarMenu ->addAction ( mHelpToolBar ->toggleViewAction () );
1896
-
1896
+
1897
1897
//
1898
1898
// Raster Toolbar
1899
1899
mRasterToolBar = addToolBar ( tr ( " Raster" ) );
@@ -2050,18 +2050,18 @@ void QgisApp::setIconSizes( int size )
2050
2050
// Set the icon size of for all the toolbars created in the future.
2051
2051
setIconSize ( QSize ( size, size ) );
2052
2052
2053
- // Change all current icon sizes.
2054
- QList<QToolBar *> toolbars = findChildren<QToolBar *>();
2055
- foreach ( QToolBar * toolbar, toolbars )
2056
- {
2057
- toolbar->setIconSize ( QSize ( size, size ) );
2058
- }
2059
-
2060
- QSet<QgsComposer*>::iterator composerIt = mPrintComposers .begin ();
2061
- for ( ; composerIt != mPrintComposers .end (); ++composerIt )
2062
- {
2063
- ( *composerIt )->setIconSizes (size);
2064
- }
2053
+ // Change all current icon sizes.
2054
+ QList<QToolBar *> toolbars = findChildren<QToolBar *>();
2055
+ foreach ( QToolBar * toolbar, toolbars )
2056
+ {
2057
+ toolbar->setIconSize ( QSize ( size, size ) );
2058
+ }
2059
+
2060
+ QSet<QgsComposer*>::iterator composerIt = mPrintComposers .begin ();
2061
+ for ( ; composerIt != mPrintComposers .end (); ++composerIt )
2062
+ {
2063
+ ( *composerIt )->setIconSizes ( size );
2064
+ }
2065
2065
}
2066
2066
2067
2067
void QgisApp::setTheme ( QString theThemeName )
@@ -5525,22 +5525,22 @@ void QgisApp::localHistogramStretch()
5525
5525
}
5526
5526
if ( rlayer->drawingStyle () == QgsRasterLayer::SingleBandGray ||
5527
5527
rlayer->drawingStyle () == QgsRasterLayer::MultiBandSingleBandGray
5528
- )
5528
+ )
5529
5529
{
5530
5530
rlayer->setContrastEnhancementAlgorithm ( " StretchToMinimumMaximum" );
5531
5531
rlayer->setMinimumMaximumUsingLastExtent ();
5532
- rlayer->setCacheImage (NULL );
5532
+ rlayer->setCacheImage ( NULL );
5533
5533
// refreshLayerSymbology( rlayer->getLayerID() );
5534
5534
mMapCanvas ->refresh ();
5535
5535
return ;
5536
5536
}
5537
5537
else
5538
5538
{
5539
5539
QMessageBox::information ( this ,
5540
- tr ( " No Valid Raster Layer Selected" ),
5541
- tr ( " To perform a local histogram stretch, you need to have a grayscale "
5542
- " (multiband single layer, or singleband grayscale) raster layer "
5543
- " selected." ) );
5540
+ tr ( " No Valid Raster Layer Selected" ),
5541
+ tr ( " To perform a local histogram stretch, you need to have a grayscale "
5542
+ " (multiband single layer, or singleband grayscale) raster layer "
5543
+ " selected." ) );
5544
5544
return ;
5545
5545
}
5546
5546
}
0 commit comments