Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
-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 5582528
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/app/qgsrasterlayerproperties.cpp
Expand Up @@ -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()
Expand Down

0 comments on commit 5582528

Please sign in to comment.