MCPcopy Create free account
hub / github.com/IENT/YUView / createDifferenceHandlerControls

Method createDifferenceHandlerControls

YUViewLib/src/video/videoHandlerDifference.cpp:192–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192QLayout *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
221void videoHandlerDifference::slotDifferenceControlChanged()
222{

Callers 1

Calls 2

createdMethod · 0.80
setupUiMethod · 0.80

Tested by

no test coverage detected