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