============================================================================
| 878 | |
| 879 | //============================================================================ |
| 880 | DockWidgetArea 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 | //============================================================================ |
no test coverage detected