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

Method getItemAt

src/openms_gui/source/VISUAL/ANNOTATION/Annotations1DContainer.cpp:51–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 }
50
51 Annotation1DItem * Annotations1DContainer::getItemAt(const QPoint & pos) const
52 {
53 for (const auto ptr_item : *this)
54 {
55 if (ptr_item->boundingBox().contains(pos))
56 {
57 return ptr_item;
58 }
59 }
60 return nullptr;
61 }
62
63 void Annotations1DContainer::selectItemAt(const QPoint & pos) const
64 {

Callers 2

mousePressEventMethod · 0.80
contextMenuEventMethod · 0.80

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected