MCPcopy Create free account
hub / github.com/KDAB/GammaRay / updatePickerVisibility

Method updatePickerVisibility

ui/remoteviewwidget.cpp:1059–1068  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1057}
1058
1059void RemoteViewWidget::updatePickerVisibility() const
1060{
1061 QPointF sourceCoordinates = frame().transform().inverted().map(QPointF(m_currentMousePosition)); // for quick view, transform is needed
1062 QPoint sourceCoordinatesInt = QPoint(std::floor(sourceCoordinates.x()), std::floor(sourceCoordinates.y()));
1063 if (frame().image().rect().contains(sourceCoordinatesInt)) {
1064 m_trailingColorLabel->show();
1065 } else {
1066 m_trailingColorLabel->hide();
1067 }
1068}
1069
1070void RemoteViewWidget::pickColor() const
1071{

Callers

nothing calls this directly

Calls 4

QPointFClass · 0.85
QPointClass · 0.85
transformMethod · 0.45
imageMethod · 0.45

Tested by

no test coverage detected