개정판 15fc16c4
issue #000: add set Zvalue and fix ui and db
Change-Id: Ia93a25fa29d3892cee8f36e18b8facd4b62c64af
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py | ||
---|---|---|
824 | 824 |
''' |
825 | 825 |
def mouseDoubleClickEvent(self, event): |
826 | 826 |
from RotateSymbolDialog import QRotateSymbolDialog |
827 |
dialog = QRotateSymbolDialog(None, self.angle, self.loc)
|
|
828 |
(isAccept, angle, x, y) = dialog.showDialog() |
|
827 |
dialog = QRotateSymbolDialog(None, self.angle, self.origin, self.zValue())
|
|
828 |
(isAccept, angle, x, y, z) = dialog.showDialog()
|
|
829 | 829 |
|
830 | 830 |
if isAccept: |
831 | 831 |
self.angle = angle |
832 |
self.loc = [x, y]
|
|
833 |
self.origin = [x + self.symbolOrigin[0], y + self.symbolOrigin[1]]
|
|
832 |
self.loc = [x - self.symbolOrigin[0], y - self.symbolOrigin[1]]
|
|
833 |
self.origin = [x, y]
|
|
834 | 834 |
scene = self.scene() |
835 | 835 |
scene.removeItem(self) |
836 | 836 |
self.addSvgItemToScene(scene) |
837 |
self.setZValue(z) |
|
837 | 838 |
|
838 | 839 |
self.reSettingConnetors() |
839 | 840 |
|
내보내기 Unified diff