Skip to content
Permalink
Browse files
-Custom color map is now editable after initial creation
-Closes ticket #1046

git-svn-id: http://svn.osgeo.org/qgis/trunk@8399 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
ersts committed May 6, 2008
1 parent ce7c48f commit 55825282a715d0128d6ec17b050eaa51c0d2a181
Showing with 11 additions and 7 deletions.
  1. +11 −7 src/app/qgsrasterlayerproperties.cpp
@@ -2704,17 +2704,21 @@ void QgsRasterLayerProperties::on_mDeleteEntryButton_clicked()
void QgsRasterLayerProperties::handleColormapTreeWidgetDoubleClick(QTreeWidgetItem* item, int column)
{
if(item)
{
if(column == 1)
{
//show color dialog
QColor newColor = QColorDialog::getColor();
if(newColor.isValid())
{
if(column == 1)
{
//show color dialog
QColor newColor = QColorDialog::getColor();
if(newColor.isValid())
{
item->setBackground(1, QBrush(newColor));
}
}
}
else
{
item->setFlags(Qt::ItemIsEnabled | Qt::ItemIsEditable | Qt::ItemIsSelectable);
}
}
}

void QgsRasterLayerProperties::on_pbtnLoadMinMax_clicked()

0 comments on commit 5582528

Please sign in to comment.