mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-22 03:40:30 +00:00
* use ug --capabilities for querying * support for webcams on Windows and MacOS * support for decklink capturers and modes * query v4l2 through UltraGrid * don't store state in ui widgets (preparation for saving/loading settings) * automatic FEC
23 lines
488 B
C++
23 lines
488 B
C++
#include "checkbox_ui.hpp"
|
|
|
|
CheckboxUi::CheckboxUi(QAbstractButton *box, Settings *settings, const std::string &opt) :
|
|
CheckableUi(settings, opt),
|
|
checkbox(box)
|
|
{
|
|
updateUiState();
|
|
connectSignals();
|
|
}
|
|
|
|
void CheckboxUi::connectSignals(){
|
|
connect(checkbox, &QAbstractButton::clicked, this, &CheckboxUi::boxClicked);
|
|
}
|
|
|
|
void CheckboxUi::updateUiState(bool checked){
|
|
checkbox->setChecked(checked);
|
|
}
|
|
|
|
void CheckboxUi::updateUiState(){
|
|
updateUiState(getOptValue());
|
|
}
|
|
|