MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / keyPressEvent

Method keyPressEvent

src/openms_gui/source/VISUAL/MultiGradientSelector.cpp:184–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182 }
183
184 void MultiGradientSelector::keyPressEvent(QKeyEvent * e)
185 {
186 if (e->key() == Qt::Key_Delete && selected_ > 0 && selected_ < 100) // don't remove first or last lever)
187 {
188 gradient_.remove(selected_);
189 selected_ = -1;
190 selected_color_ = Qt::white;
191 repaint();
192 }
193 else
194 {
195 e->ignore();
196 }
197 }
198
199 void MultiGradientSelector::stairsInterpolation(bool state)
200 {

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected