MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / fromCheckState

Function fromCheckState

src/openms_gui/source/VISUAL/DIALOGS/TOPPViewPrefDialog.cpp:84–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 }
83
84 String fromCheckState(const Qt::CheckState cs)
85 {
86 switch (cs)
87 {
88 case Qt::CheckState::Checked: return "true";
89 case Qt::CheckState::Unchecked: return "false";
90 default: throw Exception::InvalidValue(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, "Checkbox had unexpected state", String(cs));
91 }
92 }
93
94 Param TOPPViewPrefDialog::getParam() const
95 {

Callers 1

getParamMethod · 0.85

Calls 1

StringClass · 0.50

Tested by

no test coverage detected