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 8187383 commit f92928d4da7ece907b94713e8706e550e6ab4c5e
Showing with 9 additions and 0 deletions.
  1. +8 −0 src/gui/raster/qgspalettedrendererwidget.cpp
  2. +1 −0 src/gui/raster/qgspalettedrendererwidget.h
@@ -85,6 +85,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 );
@@ -38,6 +38,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 f92928d

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