diff --git a/PPOCRLabel/PPOCRLabel.py b/PPOCRLabel/PPOCRLabel.py index 450345fece5b7e2c093ef33c72dee7726816e8c1..11eda1a954d109d2155481d4a6d432983df8e97f 100644 --- a/PPOCRLabel/PPOCRLabel.py +++ b/PPOCRLabel/PPOCRLabel.py @@ -152,16 +152,6 @@ class MainWindow(QMainWindow): self.fileListWidget.setIconSize(QSize(25, 25)) filelistLayout.addWidget(self.fileListWidget) - self.AutoRecognition = QToolButton() - self.AutoRecognition.setToolButtonStyle(Qt.ToolButtonTextBesideIcon) - self.AutoRecognition.setIcon(newIcon('Auto')) - autoRecLayout = QHBoxLayout() - autoRecLayout.setContentsMargins(0, 0, 0, 0) - autoRecLayout.addWidget(self.AutoRecognition) - autoRecContainer = QWidget() - autoRecContainer.setLayout(autoRecLayout) - filelistLayout.addWidget(autoRecContainer) - fileListContainer = QWidget() fileListContainer.setLayout(filelistLayout) self.fileListName = getStr('fileList') @@ -183,6 +173,16 @@ class MainWindow(QMainWindow): self.keyListDock.setFeatures(QDockWidget.NoDockWidgetFeatures) filelistLayout.addWidget(self.keyListDock) + self.AutoRecognition = QToolButton() + self.AutoRecognition.setToolButtonStyle(Qt.ToolButtonTextBesideIcon) + self.AutoRecognition.setIcon(newIcon('Auto')) + autoRecLayout = QHBoxLayout() + autoRecLayout.setContentsMargins(0, 0, 0, 0) + autoRecLayout.addWidget(self.AutoRecognition) + autoRecContainer = QWidget() + autoRecContainer.setLayout(autoRecLayout) + filelistLayout.addWidget(autoRecContainer) + # ================== Right Area ================== listLayout = QVBoxLayout() listLayout.setContentsMargins(0, 0, 0, 0)