개정판 efc41806
CHANGE eq size factor
Change-Id: I943d408143b77745f7fcb1189279de167ae23cb3
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py | ||
---|---|---|
1315 | 1315 |
elif event.key() == Qt.Key_Up: # translate up/down/left/right symbol |
1316 | 1316 |
if modifiers == Qt.AltModifier and type(self) is QEngineeringEquipmentItem: |
1317 | 1317 |
transform = QTransform().translate(self.symbolOrigin[0], self.symbolOrigin[1]) |
1318 |
transform.scale(self.transform().m11(), self.transform().m22() + 0.1)
|
|
1318 |
transform.scale(self.transform().m11(), self.transform().m22() + 0.05)
|
|
1319 | 1319 |
transform.translate(-self.symbolOrigin[0], -self.symbolOrigin[1]) |
1320 | 1320 |
self.setTransform(transform) |
1321 | 1321 |
else: |
... | ... | |
1327 | 1327 |
elif event.key() == Qt.Key_Down: |
1328 | 1328 |
if modifiers == Qt.AltModifier and type(self) is QEngineeringEquipmentItem: |
1329 | 1329 |
transform = QTransform().translate(self.symbolOrigin[0], self.symbolOrigin[1]) |
1330 |
transform.scale(self.transform().m11(), self.transform().m22() - 0.1 if self.transform().m22() - 0.1 > 0.3 else 0.3)
|
|
1330 |
transform.scale(self.transform().m11(), self.transform().m22() - 0.05 if self.transform().m22() - 0.05 > 0.3 else 0.3)
|
|
1331 | 1331 |
transform.translate(-self.symbolOrigin[0], -self.symbolOrigin[1]) |
1332 | 1332 |
self.setTransform(transform) |
1333 | 1333 |
else: |
... | ... | |
1340 | 1340 |
if modifiers == Qt.AltModifier and type(self) is QEngineeringEquipmentItem: |
1341 | 1341 |
transform = QTransform().translate(self.symbolOrigin[0], self.symbolOrigin[1]) |
1342 | 1342 |
if self.flip == 1: |
1343 |
transform.scale(self.transform().m11() + 0.1 if self.transform().m11() + 0.1 < -0.3 else -0.3, self.transform().m22())
|
|
1343 |
transform.scale(self.transform().m11() + 0.05 if self.transform().m11() + 0.05 < -0.3 else -0.3, self.transform().m22())
|
|
1344 | 1344 |
else: |
1345 |
transform.scale(self.transform().m11() - 0.1 if self.transform().m11() - 0.1 > 0.3 else 0.3, self.transform().m22())
|
|
1345 |
transform.scale(self.transform().m11() - 0.05 if self.transform().m11() - 0.05 > 0.3 else 0.3, self.transform().m22())
|
|
1346 | 1346 |
transform.translate(-self.symbolOrigin[0], -self.symbolOrigin[1]) |
1347 | 1347 |
self.setTransform(transform) |
1348 | 1348 |
else: |
... | ... | |
1355 | 1355 |
if modifiers == Qt.AltModifier and type(self) is QEngineeringEquipmentItem: |
1356 | 1356 |
transform = QTransform().translate(self.symbolOrigin[0], self.symbolOrigin[1]) |
1357 | 1357 |
if self.flip == 1: |
1358 |
transform.scale(self.transform().m11() - 0.1, self.transform().m22())
|
|
1358 |
transform.scale(self.transform().m11() - 0.05, self.transform().m22())
|
|
1359 | 1359 |
else: |
1360 |
transform.scale(self.transform().m11() + 0.1, self.transform().m22())
|
|
1360 |
transform.scale(self.transform().m11() + 0.05, self.transform().m22())
|
|
1361 | 1361 |
transform.translate(-self.symbolOrigin[0], -self.symbolOrigin[1]) |
1362 | 1362 |
self.setTransform(transform) |
1363 | 1363 |
else: |
내보내기 Unified diff