mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
Fix for [ 891857 ] Changing gryscale raster to pseudoclr does not update legend
git-svn-id: http://svn.osgeo.org/qgis/trunk@746 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
40a072f401
commit
fbb225fde8
@ -33,7 +33,7 @@
|
|||||||
#include <qfont.h>
|
#include <qfont.h>
|
||||||
#include <qtabwidget.h>
|
#include <qtabwidget.h>
|
||||||
#include <qwidget.h>
|
#include <qwidget.h>
|
||||||
|
#include <qlistview.h>
|
||||||
QgsRasterLayerProperties::QgsRasterLayerProperties(QgsMapLayer * lyr) : QgsRasterLayerPropertiesBase()
|
QgsRasterLayerProperties::QgsRasterLayerProperties(QgsMapLayer * lyr) : QgsRasterLayerPropertiesBase()
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
@ -60,10 +60,11 @@ QgsRasterLayerProperties::QgsRasterLayerProperties(QgsMapLayer * lyr) : QgsRaste
|
|||||||
//update the debug checkbox
|
//update the debug checkbox
|
||||||
cboxShowDebugInfo->setChecked(rasterLayer->getShowDebugOverlayFlag());
|
cboxShowDebugInfo->setChecked(rasterLayer->getShowDebugOverlayFlag());
|
||||||
|
|
||||||
//update the legend pixmap
|
//update the legend pixmap on this dialog
|
||||||
pixmapLegend->setPixmap(rasterLayer->getLegendQPixmap());
|
pixmapLegend->setPixmap(rasterLayer->getLegendQPixmap());
|
||||||
pixmapLegend->setScaledContents(true);
|
pixmapLegend->setScaledContents(true);
|
||||||
pixmapLegend->repaint(false);
|
pixmapLegend->repaint(false);
|
||||||
|
|
||||||
//set the transparency slider
|
//set the transparency slider
|
||||||
sliderTransparency->setValue(255-rasterLayer->getTransparency());
|
sliderTransparency->setValue(255-rasterLayer->getTransparency());
|
||||||
//update the transparency percentage label
|
//update the transparency percentage label
|
||||||
@ -352,7 +353,9 @@ void QgsRasterLayerProperties::apply()
|
|||||||
pixmapLegend->setPixmap(rasterLayer->getLegendQPixmap());
|
pixmapLegend->setPixmap(rasterLayer->getLegendQPixmap());
|
||||||
pixmapLegend->setScaledContents(true);
|
pixmapLegend->setScaledContents(true);
|
||||||
pixmapLegend->repaint(false);
|
pixmapLegend->repaint(false);
|
||||||
|
QgsLegendItem * myLegendItem = rasterLayer->legendItem();
|
||||||
|
((QCheckListItem*)myLegendItem)->setPixmap(0,* rasterLayer->legendPixmap());
|
||||||
|
|
||||||
rasterLayer->setLayerName(leDisplayName->text());
|
rasterLayer->setLayerName(leDisplayName->text());
|
||||||
//see if the user would like debug overlays
|
//see if the user would like debug overlays
|
||||||
if (cboxShowDebugInfo->isChecked()==true)
|
if (cboxShowDebugInfo->isChecked()==true)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user