Skip to content
Permalink
Browse files

[style dock] emit widgetChanged() when raster palette labels updated

  • Loading branch information
nirvn committed Dec 8, 2016
1 parent c32be64 commit e077efd3edebf987171398788e386c8688e20d72
Showing with 9 additions and 0 deletions.
  1. +8 −0 src/gui/raster/qgspalettedrendererwidget.cpp
  2. +1 −0 src/gui/raster/qgspalettedrendererwidget.h
@@ -88,6 +88,14 @@ void QgsPalettedRendererWidget::on_mTreeWidget_itemDoubleClicked( QTreeWidgetIte
}
}

void QgsPalettedRendererWidget::on_mTreeWidget_itemChanged( QTreeWidgetItem * item, int column )
{
if ( column == 2 && item ) //palette label modified
{
emit widgetChanged();
}
}

void QgsPalettedRendererWidget::setFromRenderer( const QgsRasterRenderer* r )
{
const QgsPalettedRasterRenderer* pr = dynamic_cast<const QgsPalettedRasterRenderer*>( r );
@@ -41,6 +41,7 @@ class GUI_EXPORT QgsPalettedRendererWidget: public QgsRasterRendererWidget, priv

private slots:
void on_mTreeWidget_itemDoubleClicked( QTreeWidgetItem * item, int column );
void on_mTreeWidget_itemChanged( QTreeWidgetItem * item, int column );
};

#endif // QGSPALETTEDRENDERERWIDGET_H

1 comment on commit e077efd

@NathanW2

This comment has been minimized.

Copy link
Member

@NathanW2 NathanW2 commented on e077efd Dec 8, 2016

Nice.

Please sign in to comment.
You can’t perform that action at this time.