MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / rotate

Method rotate

app/src/UI/Widgets/PainterContext.cpp:820–826  ·  view source on GitHub ↗

* @brief Rotates the painter by the given angle in radians. */

Source from the content-addressed store, hash-verified

818 * @brief Rotates the painter by the given angle in radians.
819 */
820void Widgets::PainterContext::rotate(qreal radians)
821{
822 if (!active())
823 return;
824
825 m_painter->rotate(qRadiansToDegrees(radians));
826}
827
828/**
829 * @brief Scales the painter by (sx, sy).

Callers 5

drawYAxisMethod · 0.45
drawDataMethod · 0.45
drawGridMethod · 0.45
drawCameraIndicatorMethod · 0.45
eyeTransformationsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected