MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / isUsableRect

Function isUsableRect

pj_plotting/widget/src/PlotWidgetBase.cpp:43–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41namespace {
42
43[[nodiscard]] bool isUsableRect(const QRectF& rect) noexcept {
44 return rect.width() >= 0.0 && rect.height() >= 0.0 && std::isfinite(rect.left()) && std::isfinite(rect.right()) &&
45 std::isfinite(rect.top()) && std::isfinite(rect.bottom());
46}
47
48[[nodiscard]] QColor colorFromIndex(int index) {
49 static const std::array<QColor, 8> k_colors = {

Callers 2

Calls 2

heightMethod · 0.80
widthMethod · 0.45

Tested by

no test coverage detected