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

Method fillRow_

src/openms_gui/source/VISUAL/SpectraIDViewTab.cpp:1025–1053  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1023 }
1024
1025 void SpectraIDViewTab::fillRow_(const MSSpectrum& spectrum, const int spec_index, const QColor& background_color)
1026 {
1027 const vector<Precursor>& precursors = spectrum.getPrecursors();
1028
1029 table_widget_->setAtBottomRow(QString::number(spectrum.getMSLevel()), Clmn::MS_LEVEL, background_color);
1030 table_widget_->setAtBottomRow(spec_index, Clmn::SPEC_INDEX, background_color);
1031 table_widget_->setAtBottomRow(spectrum.getRT(), Clmn::RT, background_color);
1032
1033 // scan mode
1034 table_widget_->setAtBottomRow(QString::fromStdString(spectrum.getInstrumentSettings().NamesOfScanMode[spectrum.getInstrumentSettings().getScanMode()]), Clmn::SCANTYPE, background_color);
1035
1036 // zoom scan
1037 table_widget_->setAtBottomRow(spectrum.getInstrumentSettings().getZoomScan() ? "yes" : "no", Clmn::ZOOM, background_color);
1038
1039 // fill precursor information in columns
1040 if (!precursors.empty())
1041 {
1042 const Precursor& first_precursor = precursors.front();
1043
1044 // draw precursor information in blue
1045 table_widget_->setAtBottomRow(first_precursor.getMZ(), Clmn::PRECURSOR_MZ, background_color, Qt::blue);
1046
1047 // set activation method
1048 table_widget_->setAtBottomRow(ListUtils::concatenate(first_precursor.getActivationMethodsAsString(), ",").toQString(), Clmn::DISSOCIATION, background_color);
1049
1050 // set precursor intensity
1051 table_widget_->setAtBottomRow(first_precursor.getIntensity(), Clmn::PREC_INT, background_color);
1052 }
1053 }
1054
1055 void SpectraIDViewTab::SelfResizingTableView_::resizeEvent(QResizeEvent * /*event*/)
1056 {

Callers

nothing calls this directly

Calls 14

numberFunction · 0.85
concatenateFunction · 0.85
getPrecursorsMethod · 0.80
setAtBottomRowMethod · 0.80
getMSLevelMethod · 0.80
getScanModeMethod · 0.80
getZoomScanMethod · 0.80
frontMethod · 0.80
getRTMethod · 0.45
emptyMethod · 0.45
getMZMethod · 0.45

Tested by

no test coverage detected