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

Function listToVec

src/openms_gui/source/VISUAL/SpectraTreeTab.cpp:23–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21{
22
23 std::vector<int> listToVec(const QList<QVariant>& in)
24 {
25 std::vector<int> out;
26 for (const auto & i : in)
27 {
28 out.push_back(i.toInt());
29 }
30 return out;
31 }
32
33
34 QList<QVariant> vecToList(const std::vector<Size>& in)

Callers 3

itemSelectionChange_Method · 0.85
itemDoubleClicked_Method · 0.85
spectrumContextMenu_Method · 0.85

Calls 2

toIntMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected