mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
-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
This commit is contained in:
parent
ce7c48f907
commit
55825282a7
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user