| 162 | } |
| 163 | |
| 164 | void 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 | |
| 175 | void FormattingHeatmapDialog::checkValues() { |
| 176 | if (ui.chkAutoRange->checkState() != Qt::Checked && (ui.leMaximum->text().isEmpty() || ui.leMinimum->text().isEmpty())) { |
nothing calls this directly
no test coverage detected