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

Method selectColorMap

src/frontend/spreadsheet/FormattingHeatmapDialog.cpp:164–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164void FormattingHeatmapDialog::selectColorMap() {
165 auto* dlg = new ColorMapsDialog(this);
166 if (dlg->exec() == QDialog::Accepted) {
167 m_name = dlg->name();
168 ui.lColorMapPreview->setPixmap(dlg->previewPixmap());
169 m_colors = dlg->colors(); // fetch the colors _after_ the preview pixmap was fetched to get the proper colors from the color manager
170 ui.lColorMapPreview->setFocus();
171 }
172 delete dlg;
173}
174
175void FormattingHeatmapDialog::checkValues() {
176 if (ui.chkAutoRange->checkState() != Qt::Checked && (ui.leMaximum->text().isEmpty() || ui.leMinimum->text().isEmpty())) {

Callers

nothing calls this directly

Calls 5

execMethod · 0.80
nameMethod · 0.45
previewPixmapMethod · 0.45
colorsMethod · 0.45
setFocusMethod · 0.45

Tested by

no test coverage detected