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 95ae154 commit fd081c8ca900b7bd475d663801762fd87a78c74e
Showing with 9 additions and 0 deletions.
  1. +8 −0 src/gui/raster/qgspalettedrendererwidget.cpp
  2. +1 −0 src/gui/raster/qgspalettedrendererwidget.h
@@ -87,6 +87,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

0 comments on commit fd081c8

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