| 190 | } |
| 191 | |
| 192 | QLayout *videoHandlerDifference::createDifferenceHandlerControls() |
| 193 | { |
| 194 | Q_ASSERT_X(!ui.created(), "createResampleHandlerControls", "Controls must only be created once"); |
| 195 | |
| 196 | ui.setupUi(); |
| 197 | |
| 198 | // Set all the values of the properties widget to the values of this class |
| 199 | ui.markDifferenceCheckBox->setChecked(markDifference); |
| 200 | ui.amplificationFactorSpinBox->setValue(amplificationFactor); |
| 201 | ui.codingOrderComboBox->addItems(QStringList() << "HEVC"); |
| 202 | ui.codingOrderComboBox->setCurrentIndex((int)codingOrder); |
| 203 | |
| 204 | // Connect all the change signals from the controls to "connectWidgetSignals()" |
| 205 | connect(ui.markDifferenceCheckBox, |
| 206 | &QCheckBox::stateChanged, |
| 207 | this, |
| 208 | &videoHandlerDifference::slotDifferenceControlChanged); |
| 209 | connect(ui.codingOrderComboBox, |
| 210 | QOverload<int>::of(&QComboBox::currentIndexChanged), |
| 211 | this, |
| 212 | &videoHandlerDifference::slotDifferenceControlChanged); |
| 213 | connect(ui.amplificationFactorSpinBox, |
| 214 | QOverload<int>::of(&QSpinBox::valueChanged), |
| 215 | this, |
| 216 | &videoHandlerDifference::slotDifferenceControlChanged); |
| 217 | |
| 218 | return ui.topVBoxLayout; |
| 219 | } |
| 220 | |
| 221 | void videoHandlerDifference::slotDifferenceControlChanged() |
| 222 | { |
no test coverage detected