| 1068 | } |
| 1069 | |
| 1070 | void RemoteViewWidget::pickColor() const |
| 1071 | { |
| 1072 | QPointF sourceCoordinates = frame().transform().inverted().map(QPointF(m_currentMousePosition)); // for quick view, transform is needed |
| 1073 | QPoint sourceCoordinatesInt = QPoint(std::floor(sourceCoordinates.x()), std::floor(sourceCoordinates.y())); |
| 1074 | if (frame().image().rect().contains(sourceCoordinatesInt)) { |
| 1075 | m_trailingColorLabel->setPickedColor(frame().image().pixel(sourceCoordinatesInt)); |
| 1076 | } else { |
| 1077 | m_trailingColorLabel->setPickedColor(Qt::transparent); |
| 1078 | } |
| 1079 | } |
| 1080 | |
| 1081 | void RemoteViewWidget::mouseMoveEvent(QMouseEvent *event) |
| 1082 | { |
nothing calls this directly
no test coverage detected