9 ui = std::make_unique<Ui::MultiplyFactorDialog>(); |
9 ui = std::make_unique<Ui::MultiplyFactorDialog>(); |
10 ui->setupUi(this); |
10 ui->setupUi(this); |
11 this->preview.setEnabled(false); |
11 this->preview.setEnabled(false); |
12 this->ui->previewGroupBox->setLayout(new QVBoxLayout{parent}); |
12 this->ui->previewGroupBox->setLayout(new QVBoxLayout{parent}); |
13 this->ui->previewGroupBox->layout()->addWidget(&this->preview); |
13 this->ui->previewGroupBox->layout()->addWidget(&this->preview); |
14 connect(this->ui->invert, &QCheckBox::clicked, this, &MultiplyFactorDialog::updatePreview); |
14 connect( |
15 connect(this->ui->factor, qOverload<double>(&DoubleSpinBox::valueChanged), this, &MultiplyFactorDialog::updatePreview); |
15 this->ui->invert, |
|
16 &QCheckBox::clicked, |
|
17 this, |
|
18 &MultiplyFactorDialog::updatePreview); |
|
19 connect( |
|
20 this->ui->factor, |
|
21 qOverload<double>(&DoubleSpinBox::valueChanged), |
|
22 this, |
|
23 &MultiplyFactorDialog::updatePreview); |
16 } |
24 } |
17 |
25 |
18 /** |
26 /** |
19 * @brief empty destructor, necessary because std::unique_ptr is used with a forward declaration |
27 * @brief empty destructor, necessary because std::unique_ptr is used with a forward declaration |
20 */ |
28 */ |