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

Function cursorForEdges

pj_widgets/src/Dialog.cpp:24–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22constexpr int kResizeMargin = 6;
23
24Qt::CursorShape cursorForEdges(Qt::Edges edges) {
25 switch (static_cast<int>(edges)) {
26 case Qt::TopEdge | Qt::LeftEdge:
27 case Qt::BottomEdge | Qt::RightEdge:
28 return Qt::SizeFDiagCursor;
29 case Qt::TopEdge | Qt::RightEdge:
30 case Qt::BottomEdge | Qt::LeftEdge:
31 return Qt::SizeBDiagCursor;
32 case Qt::TopEdge:
33 case Qt::BottomEdge:
34 return Qt::SizeVerCursor;
35 case Qt::LeftEdge:
36 case Qt::RightEdge:
37 return Qt::SizeHorCursor;
38 default:
39 return Qt::ArrowCursor;
40 }
41}
42
43} // namespace
44

Callers 1

eventFilterMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected