8 #include "ui_colormap_selector.h"
15 : QDialog(parent), ui(new
Ui::colormap_selector)
18 ui->lineSeries->setText(series);
20 if (default_colormap.isEmpty())
24 settings.value(
"ColormapSelectorDialog::prevColorMap",
"").toString();
29 ui->comboBox->addItem(it.first);
33 ui->comboBox->setCurrentText(default_colormap);
36 auto reset_button =
ui->buttonBox->button(QDialogButtonBox::Reset);
37 connect(reset_button, &QPushButton::clicked,
this, [
this]() {
46 settings.setValue(
"ColormapSelectorDialog::prevColorMap",
ui->comboBox->currentText());
61 QString default_colormap =
ui->comboBox->currentText();
63 ui->comboBox->clear();
66 ui->comboBox->addItem(it.first);
70 ui->comboBox->setCurrentText(default_colormap);