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

Method insideRect

src/frontend/worksheet/SlidingPanel.cpp:67–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67bool SlidingPanel::insideRect(QPoint screenPos) {
68 const auto leftTop = mapToGlobal(QPoint(rect().left(), rect().top()));
69 const auto rightBottom = mapToGlobal(QPoint(rect().right(), rect().bottom()));
70 const auto globalRect = QRect(leftTop.x(), leftTop.y(), rightBottom.x(), rightBottom.y());
71 return globalRect.contains(mapToGlobal(screenPos));
72}
73
74// ####################################################################################################
75

Callers 1

eventFilterMethod · 0.80

Calls 8

xMethod · 0.80
rectMethod · 0.80
geometryMethod · 0.80
heightMethod · 0.80
yMethod · 0.45
containsMethod · 0.45
widthMethod · 0.45
sizeHintMethod · 0.45

Tested by

no test coverage detected