프로젝트

일반

사용자정보

개정판 14297268

ID14297268837841b476b0f94b5ce502f950b7493f
상위 aedd669e
하위 1a5e7b88

gaqhf 이(가) 6년 이상 전에 추가함

fixed issue #587: fixed bug

차이점 보기:

DTI_PID/DTI_PID/QOcrResultDialog.py
30 30
        self.imgW = qimage.width()
31 31
        self.imgH = qimage.height()
32 32
        self.image = self.image.scaled(self.imgW, self.imgH)
33
        self.graphicsView = QtImageViewer.QtImageViewer(None)
33
        self.graphicsView = QtImageViewer.QtImageViewer()
34 34
        self.graphicsView.useDefaultCommand() ##### USE DEFAULT COMMAND
35 35
        self.graphicsView.setImage(self.image)
36 36
        self.ui.tVerticalLayout_2.addWidget(self.graphicsView)
DTI_PID/DTI_PID/QSymbolDisplayDialog.py
19 19
    def setupImageViewer(self):
20 20
        width = self.frameGeometry().width()
21 21
        height = self.frameGeometry().height()
22
        self.ui.imageView = QtImageViewer(None)
22
        self.ui.imageView = QtImageViewer()
23 23
        self.ui.imageView.setGeometry(QtCore.QRect(0, 0, height, height))
24 24
        self.ui.imageView.aspectRatioMode = QtCore.Qt.KeepAspectRatio
25 25
        self.ui.imageView.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded)
DTI_PID/DTI_PID/QSymbolEditorDialog.py
75 75
        y = self.ui.imageViewContainer.y()
76 76
        width = self.ui.imageViewContainer.frameGeometry().width()
77 77
        height = self.ui.imageViewContainer.frameGeometry().height()
78
        self.ui.imageView = QtImageViewer(None)
78
        self.ui.imageView = QtImageViewer()
79 79
        self.ui.imageView.setGeometry(QtCore.QRect(0, y, height, height))
80 80
        self.ui.imageView.aspectRatioMode = QtCore.Qt.KeepAspectRatio
81 81
        self.ui.imageView.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded)
DTI_PID/DTI_PID/QtImageViewer.py
52 52
    '''
53 53
        @history    2018.06.27  Jeongwoo    Change zoom rule (Qt.KeepAspectRatioByExpanding → Qt.KeepAspectRatio)
54 54
    '''
55
    def __init__(self, mainWindow):
55
    def __init__(self, mainWindow = None):
56 56
        QGraphicsView.__init__(self)
57 57

  
58 58
        self.mainWindow = mainWindow

내보내기 Unified diff

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