MCPcopy Create free account
hub / github.com/comaps/comaps / ScaleChanged

Method ScaleChanged

qt/qt_common/map_widget.cpp:203–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203void MapWidget::ScaleChanged(int action)
204{
205 if (!m_slider)
206 return;
207
208 if (action == QAbstractSlider::SliderNoAction)
209 return;
210
211 double const factor = m_slider->GetScaleFactor();
212 if (factor != 1.0)
213 m_framework.Scale(factor, false);
214}
215
216void MapWidget::SliderPressed()
217{

Callers

nothing calls this directly

Calls 2

GetScaleFactorMethod · 0.45
ScaleMethod · 0.45

Tested by

no test coverage detected