@@ -68,17 +68,17 @@ QgsRuleBasedRendererV2Widget::QgsRuleBasedRendererV2Widget( QgsVectorLayer* laye
68
68
btnAddRule->setIcon ( QIcon ( QgsApplication::iconPath ( " symbologyAdd.png" ) ) );
69
69
btnEditRule->setIcon ( QIcon ( QgsApplication::iconPath ( " symbologyEdit.png" ) ) );
70
70
btnRemoveRule->setIcon ( QIcon ( QgsApplication::iconPath ( " symbologyRemove.png" ) ) );
71
- btnIncreasePriority ->setIcon ( QIcon ( QgsApplication::iconPath ( " symbologyUp.png" ) ) );
72
- btnDecreasePriority ->setIcon ( QIcon ( QgsApplication::iconPath ( " symbologyDown.png" ) ) );
71
+ btnMoveUp ->setIcon ( QIcon ( QgsApplication::iconPath ( " symbologyUp.png" ) ) );
72
+ btnMoveDown ->setIcon ( QIcon ( QgsApplication::iconPath ( " symbologyDown.png" ) ) );
73
73
74
74
connect ( treeRules, SIGNAL ( itemDoubleClicked ( QTreeWidgetItem*, int ) ), this , SLOT ( editRule () ) );
75
75
connect ( treeRules, SIGNAL ( customContextMenuRequested ( const QPoint& ) ), this , SLOT ( contextMenuViewCategories ( const QPoint& ) ) );
76
76
77
77
connect ( btnAddRule, SIGNAL ( clicked () ), this , SLOT ( addRule () ) );
78
78
connect ( btnEditRule, SIGNAL ( clicked () ), this , SLOT ( editRule () ) );
79
79
connect ( btnRemoveRule, SIGNAL ( clicked () ), this , SLOT ( removeRule () ) );
80
- connect ( btnIncreasePriority , SIGNAL ( clicked () ), this , SLOT ( increasePriority () ) );
81
- connect ( btnDecreasePriority , SIGNAL ( clicked () ), this , SLOT ( decreasePriority () ) );
80
+ connect ( btnMoveUp , SIGNAL ( clicked () ), this , SLOT ( moveUp () ) );
81
+ connect ( btnMoveDown , SIGNAL ( clicked () ), this , SLOT ( moveDown () ) );
82
82
83
83
connect ( radNoGrouping, SIGNAL ( clicked () ), this , SLOT ( setGrouping () ) );
84
84
connect ( radGroupFilter, SIGNAL ( clicked () ), this , SLOT ( setGrouping () ) );
@@ -180,7 +180,7 @@ void QgsRuleBasedRendererV2Widget::removeRule()
180
180
}
181
181
182
182
183
- void QgsRuleBasedRendererV2Widget::increasePriority ()
183
+ void QgsRuleBasedRendererV2Widget::moveUp ()
184
184
{
185
185
QTreeWidgetItem * item = treeRules->currentItem ();
186
186
if ( ! item ) return ; // No rule selected, exit
@@ -191,7 +191,7 @@ void QgsRuleBasedRendererV2Widget::increasePriority()
191
191
}
192
192
else
193
193
{
194
- if ( rule_index > 0 ) // do not increase priority of first rule
194
+ if ( rule_index > 0 ) // do not move up the first rule
195
195
{
196
196
mRenderer ->swapRules ( rule_index, rule_index - 1 );
197
197
treeRules->populateRules ();
@@ -205,7 +205,7 @@ void QgsRuleBasedRendererV2Widget::increasePriority()
205
205
}
206
206
207
207
208
- void QgsRuleBasedRendererV2Widget::decreasePriority ()
208
+ void QgsRuleBasedRendererV2Widget::moveDown ()
209
209
{
210
210
QTreeWidgetItem * item = treeRules->currentItem ();
211
211
if ( ! item ) return ; // No rule selected, exit
@@ -216,7 +216,7 @@ void QgsRuleBasedRendererV2Widget::decreasePriority()
216
216
}
217
217
else
218
218
{
219
- if ( rule_index + 1 < mRenderer ->ruleCount () ) // do not increase priority of last rule
219
+ if ( rule_index + 1 < mRenderer ->ruleCount () ) // do not move down the last rule
220
220
{
221
221
mRenderer ->swapRules ( rule_index, rule_index + 1 );
222
222
treeRules->populateRules ();
0 commit comments