From 97f4d9bc2db984e72a3b97a00d9c6de663876b10 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sat, 24 Jul 2021 16:05:46 -0400 Subject: [PATCH] Drop stale anchors --- piker/ui/_position.py | 47 ------------------------------------------- 1 file changed, 47 deletions(-) diff --git a/piker/ui/_position.py b/piker/ui/_position.py index 7f1ee14b..65f1c2ac 100644 --- a/piker/ui/_position.py +++ b/piker/ui/_position.py @@ -129,7 +129,6 @@ class PositionTracker: label=self.pp_label, ) - # size_label.scene_anchor = self.align_to_marker # size_label.scene_anchor = lambda: ( # self.pp_label.txt.pos() + QPointF(self.pp_label.w, 0) # ) @@ -316,52 +315,6 @@ class PositionTracker: return line - # TODO: we can drop this right? - # order line endpoint anchor - # def align_to_marker(self) -> QPointF: - - # pp_line = self.line - # if pp_line: - - # # line_ep = pp_line.scene_endpoint() - # # print(line_ep) - - # # y_level_scene = line_ep.y() - # # pp_y = pp_label.txt.pos().y() - - # # if y_level_scene > pp_y: - # # y_level_scene = pp_y - - # # elif y_level_scene - # mkr_pos = self._level_marker.pos() - - # left_of_mkr = QPointF( - # # line_ep.x() - self.size_label.w, - # mkr_pos.x() - self.size_label.w, - # mkr_pos.y(), - # # self._level_marker - # # max(0, y_level_scene), - # # min( - # # pp_label.txt.pos().y() - # # ), - # ) - # return left_of_mkr - - # # return QPointF( - - # # marker_right_points(chart)[2] - pp_label.w , - # # view.height() - pp_label.h, - # # # br.x() - pp_label.w, - # # # br.y(), - # # ) - - # else: - # # pp = _lines._pp_label.txt - # # scene_rect = pp.mapToScene(pp.boundingRect()).boundingRect() - # # br = scene_rect.bottomRight() - - # return QPointF(0, 0) - def update_line( self,