Skip to content
Permalink
Browse files

Fix warnings

  • Loading branch information
nyalldawson committed Jun 28, 2016
1 parent 979e194 commit ec49c407a4535b1c87412bf5c2a185f9a2dd67b7
@@ -251,28 +251,24 @@ void QgsRuleBasedRendererV2Widget::refineRuleScales()
refineRule( 2 );
}

void QgsRuleBasedRendererV2Widget::refineRuleCategoriesGui( const QModelIndexList& indexList )
void QgsRuleBasedRendererV2Widget::refineRuleCategoriesGui( const QModelIndexList& )
{
QVBoxLayout* l = new QVBoxLayout();
QgsCategorizedSymbolRendererV2Widget* w = new QgsCategorizedSymbolRendererV2Widget( mLayer, mStyle, nullptr );
w->setPanelTitle( tr( "Add categories to rules" ) );
connect( w, SIGNAL( panelAccepted( QgsPanelWidget* ) ), this, SLOT( refineRuleCategoriesAccepted( QgsPanelWidget* ) ) );
w->setDockMode( this->dockMode() );
w->setMapCanvas( mMapCanvas );
openPanel( w );

}


void QgsRuleBasedRendererV2Widget::refineRuleRangesGui( const QModelIndexList& indexList )
void QgsRuleBasedRendererV2Widget::refineRuleRangesGui( const QModelIndexList& )
{
QgsGraduatedSymbolRendererV2Widget* w = new QgsGraduatedSymbolRendererV2Widget( mLayer, mStyle, nullptr );
w->setPanelTitle( tr( "Add ranges to rules" ) );
connect( w, SIGNAL( panelAccepted( QgsPanelWidget* ) ), this, SLOT( refineRuleRangesAccepted( QgsPanelWidget* ) ) );
w->setMapCanvas( mMapCanvas );
w->setDockMode( this->dockMode() );
openPanel( w );

}

void QgsRuleBasedRendererV2Widget::refineRuleScalesGui( const QModelIndexList& indexList )
@@ -133,7 +133,9 @@ class GUI_EXPORT QgsRuleBasedRendererV2Widget : public QgsRendererV2Widget, priv

protected:
void refineRule( int type );
//TODO QGIS 3.0 - remove index parameter
void refineRuleCategoriesGui( const QModelIndexList& index );
//TODO QGIS 3.0 - remove index parameter
void refineRuleRangesGui( const QModelIndexList& index );
void refineRuleScalesGui( const QModelIndexList& index );

0 comments on commit ec49c40

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