UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
gui
QT
option
actionCheckable_ui.cpp
Go to the documentation of this file.
1
#include "
actionCheckable_ui.hpp
"
2
3
ActionCheckableUi::ActionCheckableUi
(QAction *action,
Settings
*settings,
const
std::string &opt) :
4
CheckableUi
(settings, opt),
5
action(action)
6
{
7
updateUiState
();
8
connectSignals
();
9
}
10
11
void
ActionCheckableUi::connectSignals
(){
12
connect(
action
, &QAction::triggered,
this
, &
ActionCheckableUi::boxClicked
);
13
}
14
15
void
ActionCheckableUi::updateUiState
(
bool
checked){
16
action
->setChecked(checked);
17
}
18
19
void
ActionCheckableUi::updateUiState
(){
20
updateUiState
(
getOptValue
());
21
}
22
actionCheckable_ui.hpp
ActionCheckableUi::action
QAction * action
Definition
actionCheckable_ui.hpp:17
ActionCheckableUi::updateUiState
void updateUiState() override
Definition
actionCheckable_ui.cpp:19
ActionCheckableUi::connectSignals
void connectSignals() override
Definition
actionCheckable_ui.cpp:11
ActionCheckableUi::ActionCheckableUi
ActionCheckableUi(QAction *action, Settings *settings, const std::string &opt)
Definition
actionCheckable_ui.cpp:3
CheckableUi
Definition
checkable_ui.hpp:9
CheckableUi::boxClicked
void boxClicked(bool checked)
Definition
checkable_ui.cpp:9
CheckableUi::getOptValue
bool getOptValue()
Definition
checkable_ui.cpp:21
Settings
Definition
settings.hpp:91
Generated on Wed Sep 25 2024 14:27:13 for UltraGrid by
1.12.0