style: have the cross hair not too long, just a small cross
CI / lint (push) Skipped
CI / test (3.12) (push) Skipped
CI / test (3.13) (push) Skipped
CI / test-with-beamline-plugins (pxi_bec) (push) Skipped
CI / test-with-beamline-plugins (pxii_bec) (push) Skipped
CI / test-with-beamline-plugins (pxiii_bec) (push) Skipped
CI / lint (pull_request) Successful in 44s
CI / test (3.12) (pull_request) Successful in 1m2s
CI / test (3.13) (pull_request) Successful in 1m10s
CI / test (3.14) (pull_request) Successful in 1m15s
CI / test-with-beamline-plugins (pxii_bec) (pull_request) Successful in 1m16s
CI / test-with-beamline-plugins (pxi_bec) (pull_request) Successful in 1m29s
CI / test-with-beamline-plugins (pxiii_bec) (pull_request) Successful in 1m27s
CI / test-with-coverage (pull_request) Successful in 1m46s
CI / coverage-analysis (pull_request) Successful in 4s
CI / lint (push) Skipped
CI / test (3.12) (push) Skipped
CI / test (3.13) (push) Skipped
CI / test-with-beamline-plugins (pxi_bec) (push) Skipped
CI / test-with-beamline-plugins (pxii_bec) (push) Skipped
CI / test-with-beamline-plugins (pxiii_bec) (push) Skipped
CI / lint (pull_request) Successful in 44s
CI / test (3.12) (pull_request) Successful in 1m2s
CI / test (3.13) (pull_request) Successful in 1m10s
CI / test (3.14) (pull_request) Successful in 1m15s
CI / test-with-beamline-plugins (pxii_bec) (pull_request) Successful in 1m16s
CI / test-with-beamline-plugins (pxi_bec) (pull_request) Successful in 1m29s
CI / test-with-beamline-plugins (pxiii_bec) (pull_request) Successful in 1m27s
CI / test-with-coverage (pull_request) Successful in 1m46s
CI / coverage-analysis (pull_request) Successful in 4s
Anuschka and Katherine really need it
This commit is contained in:
@@ -1455,12 +1455,12 @@ class SampleCameraImageLabel(QGraphicsView):
|
||||
)
|
||||
)
|
||||
if self._show_beam_crosshair:
|
||||
# Same pen as the box so the crosshair follows the beam state color.
|
||||
r = self.sceneRect()
|
||||
# Anuschka and Katherine really want a crosshair at 10s
|
||||
arm = 33
|
||||
cx = int(self._geom.beam_location_pxl.x)
|
||||
cy = int(self._geom.beam_location_pxl.y)
|
||||
painter.drawLine(int(r.left()), cy, int(r.right()), cy)
|
||||
painter.drawLine(cx, int(r.top()), cx, int(r.bottom()))
|
||||
painter.drawLine(cx - arm, cy, cx + arm, cy)
|
||||
painter.drawLine(cx, cy - arm, cx, cy + arm)
|
||||
|
||||
@staticmethod
|
||||
def _draw_circle(painter, coord: Coordinate, color: QColor, radius=10):
|
||||
|
||||
Reference in New Issue
Block a user