Skip to content

Commit

Permalink
-Custom color map is now editable after initial creation
Browse files Browse the repository at this point in the history
-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 e4d82aa
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/app/qgsrasterlayerproperties.cpp
Original file line number Diff line number Diff line change
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 e4d82aa

Please sign in to comment.