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

Function cursorForEdges

pj_app/src/MainWindow.cpp:236–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236Qt::CursorShape cursorForEdges(Qt::Edges edges) {
237 switch (static_cast<int>(edges)) {
238 case Qt::TopEdge | Qt::LeftEdge:
239 case Qt::BottomEdge | Qt::RightEdge:
240 return Qt::SizeFDiagCursor;
241 case Qt::TopEdge | Qt::RightEdge:
242 case Qt::BottomEdge | Qt::LeftEdge:
243 return Qt::SizeBDiagCursor;
244 case Qt::TopEdge:
245 case Qt::BottomEdge:
246 return Qt::SizeVerCursor;
247 case Qt::LeftEdge:
248 case Qt::RightEdge:
249 return Qt::SizeHorCursor;
250 default:
251 return Qt::ArrowCursor;
252 }
253}
254
255struct PanelToggle {
256 QPushButton* button;

Callers 1

eventFilterMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected