| 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 | { |
nothing calls this directly
no test coverage detected