mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-20 17:40:12 +00:00
23 lines
468 B
C++
23 lines
468 B
C++
#include "groupBox_ui.hpp"
|
|
|
|
GroupBoxUi::GroupBoxUi(QGroupBox *groupBox, Settings *settings, const std::string &opt) :
|
|
CheckableUi(settings, opt),
|
|
groupBox(groupBox)
|
|
{
|
|
updateUiState();
|
|
connectSignals();
|
|
}
|
|
|
|
void GroupBoxUi::connectSignals(){
|
|
connect(groupBox, &QGroupBox::clicked, this, &GroupBoxUi::boxClicked);
|
|
}
|
|
|
|
void GroupBoxUi::updateUiState(bool checked){
|
|
groupBox->setChecked(checked);
|
|
}
|
|
|
|
void GroupBoxUi::updateUiState(){
|
|
updateUiState(getOptValue());
|
|
}
|
|
|