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

Method onSettingsChanged

src/gui/widgets/mapper_proxystyle.cpp:123–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121
122
123void MapperProxyStyle::onSettingsChanged()
124{
125 auto& settings = Settings::getInstance();
126 if (touch_mode != settings.touchModeEnabled()
127 || (touch_mode && button_size != buttonSizePixel(settings)))
128 {
129#ifndef __clang_analyzer__
130 // No leak: QApplication takes ownership.
131 QApplication::setStyle(new MapperProxyStyle(default_palette));
132#endif
133 }
134}
135
136void MapperProxyStyle::fixupProxyChain(QStyle* base_style)
137{

Callers

nothing calls this directly

Calls 2

buttonSizePixelFunction · 0.85
touchModeEnabledMethod · 0.80

Tested by

no test coverage detected