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

Function populateRow

src/openms_gui/source/VISUAL/DIALOGS/LayerStatisticsDialog.cpp:71–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 constexpr int col_count = 4; // columns: count, min, max, avg
70
71 void populateRow(QTableWidget* table, const int row_i, const std::array<QString, col_count>& data)
72 {
73 for (int col = 0; col < col_count; ++col)
74 {
75 QTableWidgetItem* item = new QTableWidgetItem();
76 item->setText(data[col]);
77 table->setItem(row_i, col, item);
78 }
79 }
80
81 /// insert an intermediate row with a single spanning cell, which describes where the values came from (e.g. from DataArrays, or MetaData)
82 void addHeaderRow(QTableWidget* table, int& row_i, const QString& row_name)

Callers 2

addRangeRowFunction · 0.85
addCountRowFunction · 0.85

Calls 1

setTextMethod · 0.80

Tested by

no test coverage detected