| 110 | } |
| 111 | |
| 112 | void LayerListView::currentRowChangedAction_(int i) |
| 113 | { |
| 114 | // after adding a layer, i is -1. TODO: check if this is the correct behaviour |
| 115 | if (i != -1) |
| 116 | { |
| 117 | spectrum_widget_->canvas()->activateLayer(i); // emits layerActivated in TOPPView |
| 118 | } |
| 119 | } |
| 120 | void LayerListView::itemChangedAction_(QListWidgetItem* item) |
| 121 | { |
| 122 | int layer = this->row(item); |
nothing calls this directly
no test coverage detected