Skip to content
Permalink
Browse files

[raster] allow multiple row deletion in the singleband pseudo-color UI

  • Loading branch information
nirvn committed Dec 9, 2016
1 parent 364a51d commit 4894a6d49808770e91254053554fa8c707412499
@@ -315,10 +315,16 @@ void QgsSingleBandPseudoColorRendererWidget::on_mAddEntryButton_clicked()

void QgsSingleBandPseudoColorRendererWidget::on_mDeleteEntryButton_clicked()
{
QTreeWidgetItem* currentItem = mColormapTreeWidget->currentItem();
if ( currentItem )
QList<QTreeWidgetItem *> itemList;
itemList = mColormapTreeWidget->selectedItems();
if ( itemList.isEmpty() )
{
return;
}

Q_FOREACH ( QTreeWidgetItem *item, itemList )
{
delete currentItem;
delete item;
}
emit widgetChanged();
}
@@ -127,7 +127,7 @@
<item>
<widget class="QPushButton" name="mDeleteEntryButton">
<property name="toolTip">
<string>Remove selected row</string>
<string>Remove selected row(s)</string>
</property>
<property name="icon">
<iconset resource="../../images/images.qrc">

0 comments on commit 4894a6d

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