MCPcopy Create free account
hub / github.com/KDE/labplot / cursorLocation

Method cursorLocation

src/3rdparty/Qt-Advanced-Docking-System/src/DockOverlay.cpp:880–896  ·  view source on GitHub ↗

============================================================================

Source from the content-addressed store, hash-verified

878
879//============================================================================
880DockWidgetArea CDockOverlayCross::cursorLocation() const
881{
882 const QPoint pos = mapFromGlobal(QCursor::pos());
883 QHashIterator<DockWidgetArea, QWidget*> i(d->DropIndicatorWidgets);
884 while (i.hasNext())
885 {
886 i.next();
887 if (d->DockOverlay->allowedAreas().testFlag(i.key())
888 && i.value()
889 && i.value()->isVisible()
890 && i.value()->geometry().contains(pos))
891 {
892 return i.key();
893 }
894 }
895 return InvalidDockWidgetArea;
896}
897
898
899//============================================================================

Callers 1

dropAreaUnderCursorMethod · 0.80

Calls 6

nextMethod · 0.80
geometryMethod · 0.80
allowedAreasMethod · 0.45
valueMethod · 0.45
isVisibleMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected