public void setupUi(QDialog AboutTextRecognition) { AboutTextRecognition.setObjectName("AboutTextRecognition"); AboutTextRecognition.resize( new QSize(622, 412).expandedTo(AboutTextRecognition.minimumSizeHint())); AboutTextRecognition.setAutoFillBackground(false); gridLayout = new QGridLayout(AboutTextRecognition); gridLayout.setObjectName("gridLayout"); gridLayout1 = new QGridLayout(); gridLayout1.setObjectName("gridLayout1"); textEdit = new QTextEdit(AboutTextRecognition); textEdit.setObjectName("textEdit"); QPalette palette = new QPalette(); palette.setColor( QPalette.ColorGroup.Active, QPalette.ColorRole.Base, new QColor(224, 223, 227)); palette.setColor( QPalette.ColorGroup.Inactive, QPalette.ColorRole.Base, new QColor(224, 223, 227)); palette.setColor( QPalette.ColorGroup.Disabled, QPalette.ColorRole.Base, new QColor(224, 223, 227)); textEdit.setPalette(palette); textEdit.setAcceptDrops(true); textEdit.setFrameShape(com.trolltech.qt.gui.QFrame.Shape.Box); textEdit.setUndoRedoEnabled(false); textEdit.setReadOnly(true); gridLayout1.addWidget(textEdit, 0, 1, 2, 1); spacerItem = new QSpacerItem( 20, 221, com.trolltech.qt.gui.QSizePolicy.Policy.Minimum, com.trolltech.qt.gui.QSizePolicy.Policy.Expanding); gridLayout1.addItem(spacerItem, 1, 0, 1, 1); gridLayout.addLayout(gridLayout1, 0, 0, 1, 3); spacerItem1 = new QSpacerItem( 40, 20, com.trolltech.qt.gui.QSizePolicy.Policy.Expanding, com.trolltech.qt.gui.QSizePolicy.Policy.Minimum); gridLayout.addItem(spacerItem1, 1, 0, 1, 1); okButton = new QPushButton(AboutTextRecognition); okButton.setObjectName("okButton"); gridLayout.addWidget(okButton, 1, 1, 1, 1); spacerItem2 = new QSpacerItem( 40, 20, com.trolltech.qt.gui.QSizePolicy.Policy.Expanding, com.trolltech.qt.gui.QSizePolicy.Policy.Minimum); gridLayout.addItem(spacerItem2, 1, 2, 1, 1); retranslateUi(AboutTextRecognition); okButton.clicked.connect(AboutTextRecognition, "accept()"); AboutTextRecognition.connectSlotsByName(); } // setupUi