프로젝트

일반

사용자정보

개정판 a63b9702

IDa63b9702f0d7db5dcb8312d0199430eee81bba84
상위 ff64de8e
하위 28a1dd09, 13004596

함의성이(가) 10달 전에 추가함

eq scale test

Change-Id: If6b7bc916c687048e2d7b3b2b82cb67616bde3e4

차이점 보기:

DTI_PID/DTI_PID/OPCRelationDialog.py
198 198
                item = QEngineeringLineNoTextItem()
199 199
                item.set_property('Config', self.delimiter.join(list(csv.reader([_no_config], delimiter=self.delimiter, escapechar='^'))[0]))
200 200
                text = ''.join(result[1])
201
                for i in result[2]:
202
                    text = text[:i] + '\n' + text[i:]
201
                #for i in result[2]:
202
                #    text = text[:i] + '\n' + text[i:]
203 203
                item.setPlainText(text)
204 204

  
205 205
                opc['tag'] = item
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py
1352 1352
                #self.origin[0] = self.origin[0] + delta
1353 1353
                self.moveBy(delta, 0)
1354 1354
        elif event.key() == Qt.Key_Plus or event.key() == 61:
1355
            self.setScale(self.scale() + 0.1)
1355
            if type(self) is QEngineeringEquipmentItem:
1356
                transform = QTransform().translate(self.symbolOrigin[0], self.symbolOrigin[1])
1357
                transform.scale(self.transform().m11() + 0.1, self.transform().m22() + 0.1)
1358
                transform.translate(-self.symbolOrigin[0], -self.symbolOrigin[1])
1359
                self.setTransform(transform)
1360
            else:
1361
                self.setScale(self.scale() + 0.1)
1356 1362
        elif event.key() == Qt.Key_Minus:
1357
            self.setScale(self.scale() - 0.1 if self.scale() - 0.1 > 0.3 else 0.3)
1363
            if type(self) is QEngineeringEquipmentItem:
1364
                transform = QTransform().translate(self.symbolOrigin[0], self.symbolOrigin[1])
1365
                transform.scale(self.transform().m11() - 0.1 if self.transform().m11() - 0.1 > 0.3 else 0.3, self.transform().m22() - 0.1 if self.transform().m22() - 0.1 > 0.3 else 0.3)
1366
                transform.translate(-self.symbolOrigin[0], -self.symbolOrigin[1])
1367
                self.setTransform(transform)
1368
            else:
1369
                self.setScale(self.scale() - 0.1 if self.scale() - 0.1 > 0.3 else 0.3)
1358 1370
        elif event.key() == Qt.Key_I or event.key() == Qt.Key_J or event.key() == Qt.Key_Q or event.key() == Qt.Key_Insert or event.key() == Qt.Key_M: #or event.key() == Qt.Key_X 
1359 1371
            from App import App 
1360 1372

  

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)