File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -2704,17 +2704,21 @@ void QgsRasterLayerProperties::on_mDeleteEntryButton_clicked()
2704
2704
void QgsRasterLayerProperties::handleColormapTreeWidgetDoubleClick (QTreeWidgetItem* item, int column)
2705
2705
{
2706
2706
if (item)
2707
- {
2708
- if (column == 1 )
2709
- {
2710
- // show color dialog
2711
- QColor newColor = QColorDialog::getColor ();
2712
- if (newColor.isValid ())
2707
+ {
2708
+ if (column == 1 )
2709
+ {
2710
+ // show color dialog
2711
+ QColor newColor = QColorDialog::getColor ();
2712
+ if (newColor.isValid ())
2713
2713
{
2714
2714
item->setBackground (1 , QBrush (newColor));
2715
2715
}
2716
- }
2717
2716
}
2717
+ else
2718
+ {
2719
+ item->setFlags (Qt::ItemIsEnabled | Qt::ItemIsEditable | Qt::ItemIsSelectable);
2720
+ }
2721
+ }
2718
2722
}
2719
2723
2720
2724
void QgsRasterLayerProperties::on_pbtnLoadMinMax_clicked ()
You can’t perform that action at this time.
0 commit comments