MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / toCheckState

Function toCheckState

src/templates/template_table_model.cpp:41–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39namespace {
40
41inline
42Qt::CheckState toCheckState(const QVariant& value)
43{
44 return value.toBool() ? Qt::Checked : Qt::Unchecked;
45}
46
47QColor paletteColor(OpenOrienteering::MapView const& view, QPalette::ColorRole role) {
48 auto const group = view.areAllTemplatesHidden() ? QPalette::Disabled : QPalette::Active;

Callers 2

mapDataMethod · 0.85
templateDataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected