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/qgis@8399 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
ersts committed May 6, 2008
1 parent 8925d80 commit e4d82aa2bdc29e36ec587551c6653253ae2e4155
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 e4d82aa

Please sign in to comment.