Skip to content

Commit

Permalink
Fix setting renderer symbol properties from context menu (fix #15145)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 27, 2016
1 parent 45b8783 commit 5078e46
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/gui/symbology-ng/qgscategorizedsymbolrendererv2widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,12 @@ QgsCategoryList QgsCategorizedSymbolRendererV2Widget::selectedCategoryList()
return cl;
}

void QgsCategorizedSymbolRendererV2Widget::refreshSymbolView()
{
populateCategories();
emit widgetChanged();
}

void QgsCategorizedSymbolRendererV2Widget::showSymbolLevels()
{
showSymbolLevelsDialog( mRenderer );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class GUI_EXPORT QgsCategorizedSymbolRendererV2Widget : public QgsRendererV2Widg

QList<QgsSymbolV2*> selectedSymbols() override;
QgsCategoryList selectedCategoryList();
void refreshSymbolView() override { populateCategories(); }
void refreshSymbolView() override;
void keyPressEvent( QKeyEvent* event ) override;

protected:
Expand Down
3 changes: 2 additions & 1 deletion src/gui/symbology-ng/qgsrulebasedrendererv2widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ void QgsRuleBasedRendererV2Widget::refreshSymbolView()
treeRules->populateRules();
}
*/
emit widgetChanged();
}

void QgsRuleBasedRendererV2Widget::keyPressEvent( QKeyEvent* event )
Expand Down Expand Up @@ -654,7 +655,7 @@ QgsRendererRulePropsWidget::QgsRendererRulePropsWidget( QgsRuleBasedRendererV2::

connect( btnExpressionBuilder, SIGNAL( clicked() ), this, SLOT( buildExpression() ) );
connect( btnTestFilter, SIGNAL( clicked() ), this, SLOT( testFilter() ) );
connect( editFilter, SIGNAL(textChanged(QString)), this, SIGNAL(widgetChanged()));
connect( editFilter, SIGNAL( textChanged( QString ) ), this, SIGNAL( widgetChanged() ) );

}

Expand Down

0 comments on commit 5078e46

Please sign in to comment.