Skip to content
Permalink
Browse files

Fix deprecated warnings

  • Loading branch information
nyalldawson committed Nov 8, 2015
1 parent f3cd3ee commit dbd3fe2df5b4bcc4c30c66895a52fa3be6f13209
@@ -980,7 +980,7 @@ bool QgsRuleBasedRendererV2::legendSymbolItemsCheckable() const
bool QgsRuleBasedRendererV2::legendSymbolItemChecked( const QString& key )
{
Rule* rule = mRootRule->findRuleByKey( key );
return rule ? rule->checkState() : true;
return rule ? rule->active() : true;
}

void QgsRuleBasedRendererV2::checkLegendSymbolItem( const QString& key, bool state )
@@ -861,7 +861,7 @@ QVariant QgsRuleBasedRendererV2Model::data( const QModelIndex &index, int role )
{
if ( index.column() != 0 )
return QVariant();
return rule->checkState() ? Qt::Checked : Qt::Unchecked;
return rule->active() ? Qt::Checked : Qt::Unchecked;
}
else
return QVariant();

0 comments on commit dbd3fe2

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