- Opening a context menu shouldn't move the markers on Smith/Polar charts

pull/42/head
Rune B. Broberg 2019-09-29 21:29:14 +02:00
rodzic 5a5d1322fc
commit 9c0eccea12
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -764,6 +764,9 @@ class PolarChart(SquareChart):
return self.height()/2 + d.im * -1 * self.chartHeight/2
def mouseMoveEvent(self, a0: QtGui.QMouseEvent) -> None:
if a0.buttons() == QtCore.Qt.RightButton:
a0.ignore()
return
x = a0.x()
y = a0.y()
absx = x - (self.width() - self.chartWidth) / 2
@ -901,6 +904,9 @@ class SmithChart(SquareChart):
return a0
def mouseMoveEvent(self, a0: QtGui.QMouseEvent) -> None:
if a0.buttons() == QtCore.Qt.RightButton:
a0.ignore()
return
x = a0.x()
y = a0.y()
absx = x - (self.width() - self.chartWidth) / 2