MCPcopy Create free account
hub / github.com/KDE/labplot / setColumns

Method setColumns

src/frontend/spreadsheet/SortDialog.cpp:71–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71void SortDialog::setColumns(const QVector<Column*>& columns, const Column* leadingColumn) {
72 m_columns = columns;
73
74 int index = 0;
75 int leadingColumnIndex = 0;
76 for (auto* col : m_columns) {
77 ui.cbColumns->addItem(col->name());
78 if (leadingColumn && col == leadingColumn)
79 leadingColumnIndex = index;
80
81 ++index;
82 }
83
84 ui.cbColumns->setCurrentIndex(leadingColumnIndex);
85
86 if (m_columns.size() == 1) {
87 ui.lColumns->hide();
88 ui.cbColumns->hide();
89 }
90}

Callers 10

fillWithRandomValuesMethod · 0.45
formatHeatmapMethod · 0.45
dropColumnValuesMethod · 0.45
maskColumnValuesMethod · 0.45
sampleColumnValuesMethod · 0.45
flattenColumnsMethod · 0.45
sortCustomMethod · 0.45

Calls 3

nameMethod · 0.45
setCurrentIndexMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected