242 lines
11 KiB
C++
242 lines
11 KiB
C++
/********************************************************************************
|
|||
|
|
** Form generated from reading UI file 'QtDefectSet.ui'
|
||
|
|
**
|
||
|
|
** Created by: Qt User Interface Compiler version 5.14.2
|
||
|
|
**
|
||
|
|
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
||
|
|
********************************************************************************/
|
||
|
|
|
||
|
|
#ifndef UI_QTDEFECTSET_H
|
||
|
|
#define UI_QTDEFECTSET_H
|
||
|
|
|
||
|
|
#include <QtCore/QVariant>
|
||
|
|
#include <QtWidgets/QApplication>
|
||
|
|
#include <QtWidgets/QFrame>
|
||
|
|
#include <QtWidgets/QHBoxLayout>
|
||
|
|
#include <QtWidgets/QHeaderView>
|
||
|
|
#include <QtWidgets/QLabel>
|
||
|
|
#include <QtWidgets/QMainWindow>
|
||
|
|
#include <QtWidgets/QPushButton>
|
||
|
|
#include <QtWidgets/QSpacerItem>
|
||
|
|
#include <QtWidgets/QTableWidget>
|
||
|
|
#include <QtWidgets/QVBoxLayout>
|
||
|
|
#include <QtWidgets/QWidget>
|
||
|
|
|
||
|
|
QT_BEGIN_NAMESPACE
|
||
|
|
|
||
|
|
class Ui_QtDefectSet
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
QWidget *centralWidget;
|
||
|
|
QVBoxLayout *verticalLayout_2;
|
||
|
|
QFrame *title;
|
||
|
|
QHBoxLayout *horizontalLayout_4;
|
||
|
|
QLabel *label_icon;
|
||
|
|
QSpacerItem *horizontalSpacer_6;
|
||
|
|
QLabel *label_7;
|
||
|
|
QSpacerItem *horizontalSpacer_7;
|
||
|
|
QPushButton *pushButton_min;
|
||
|
|
QPushButton *pushButton_max;
|
||
|
|
QPushButton *pushButton_close;
|
||
|
|
QWidget *widget;
|
||
|
|
QVBoxLayout *verticalLayout;
|
||
|
|
QTableWidget *tableWidget;
|
||
|
|
QHBoxLayout *horizontalLayout;
|
||
|
|
QPushButton *pushButton_AddLine;
|
||
|
|
QPushButton *pushButton_DeleteLine;
|
||
|
|
QPushButton *pushButton_Save;
|
||
|
|
QLabel *label;
|
||
|
|
|
||
|
|
void setupUi(QMainWindow *QtDefectSet)
|
||
|
|
{
|
||
|
|
if (QtDefectSet->objectName().isEmpty())
|
||
|
|
QtDefectSet->setObjectName(QString::fromUtf8("QtDefectSet"));
|
||
|
|
QtDefectSet->resize(525, 618);
|
||
|
|
centralWidget = new QWidget(QtDefectSet);
|
||
|
|
centralWidget->setObjectName(QString::fromUtf8("centralWidget"));
|
||
|
|
centralWidget->setStyleSheet(QString::fromUtf8("background-color: rgb(31, 31, 31);\n"
|
||
|
|
"color: rgb(229, 229, 229);"));
|
||
|
|
verticalLayout_2 = new QVBoxLayout(centralWidget);
|
||
|
|
verticalLayout_2->setSpacing(6);
|
||
|
|
verticalLayout_2->setContentsMargins(11, 11, 11, 11);
|
||
|
|
verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
|
||
|
|
title = new QFrame(centralWidget);
|
||
|
|
title->setObjectName(QString::fromUtf8("title"));
|
||
|
|
title->setStyleSheet(QString::fromUtf8("background-color: rgb(31, 31, 31);"));
|
||
|
|
horizontalLayout_4 = new QHBoxLayout(title);
|
||
|
|
horizontalLayout_4->setSpacing(6);
|
||
|
|
horizontalLayout_4->setContentsMargins(11, 11, 11, 11);
|
||
|
|
horizontalLayout_4->setObjectName(QString::fromUtf8("horizontalLayout_4"));
|
||
|
|
horizontalLayout_4->setContentsMargins(0, 0, 0, 0);
|
||
|
|
label_icon = new QLabel(title);
|
||
|
|
label_icon->setObjectName(QString::fromUtf8("label_icon"));
|
||
|
|
QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||
|
|
sizePolicy.setHorizontalStretch(0);
|
||
|
|
sizePolicy.setVerticalStretch(0);
|
||
|
|
sizePolicy.setHeightForWidth(label_icon->sizePolicy().hasHeightForWidth());
|
||
|
|
label_icon->setSizePolicy(sizePolicy);
|
||
|
|
label_icon->setMinimumSize(QSize(60, 30));
|
||
|
|
label_icon->setStyleSheet(QString::fromUtf8("image: url(:/\345\233\276\346\240\207/C:/Users/DongSheng_mw/Desktop/\345\233\276\346\240\207/1.\344\270\273\347\225\214\351\235\242\345\233\276\346\240\207_32px/9.2.\346\211\223\345\274\200\344\273\273\345\212\241.png);"));
|
||
|
|
|
||
|
|
horizontalLayout_4->addWidget(label_icon);
|
||
|
|
|
||
|
|
horizontalSpacer_6 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||
|
|
|
||
|
|
horizontalLayout_4->addItem(horizontalSpacer_6);
|
||
|
|
|
||
|
|
label_7 = new QLabel(title);
|
||
|
|
label_7->setObjectName(QString::fromUtf8("label_7"));
|
||
|
|
QFont font;
|
||
|
|
font.setPointSize(16);
|
||
|
|
label_7->setFont(font);
|
||
|
|
label_7->setStyleSheet(QString::fromUtf8("color: rgb(229, 229, 229);"));
|
||
|
|
|
||
|
|
horizontalLayout_4->addWidget(label_7);
|
||
|
|
|
||
|
|
horizontalSpacer_7 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||
|
|
|
||
|
|
horizontalLayout_4->addItem(horizontalSpacer_7);
|
||
|
|
|
||
|
|
pushButton_min = new QPushButton(title);
|
||
|
|
pushButton_min->setObjectName(QString::fromUtf8("pushButton_min"));
|
||
|
|
QSizePolicy sizePolicy1(QSizePolicy::Minimum, QSizePolicy::Preferred);
|
||
|
|
sizePolicy1.setHorizontalStretch(0);
|
||
|
|
sizePolicy1.setVerticalStretch(0);
|
||
|
|
sizePolicy1.setHeightForWidth(pushButton_min->sizePolicy().hasHeightForWidth());
|
||
|
|
pushButton_min->setSizePolicy(sizePolicy1);
|
||
|
|
pushButton_min->setMinimumSize(QSize(30, 30));
|
||
|
|
pushButton_min->setMaximumSize(QSize(30, 30));
|
||
|
|
|
||
|
|
horizontalLayout_4->addWidget(pushButton_min);
|
||
|
|
|
||
|
|
pushButton_max = new QPushButton(title);
|
||
|
|
pushButton_max->setObjectName(QString::fromUtf8("pushButton_max"));
|
||
|
|
pushButton_max->setMinimumSize(QSize(30, 30));
|
||
|
|
pushButton_max->setMaximumSize(QSize(30, 30));
|
||
|
|
|
||
|
|
horizontalLayout_4->addWidget(pushButton_max);
|
||
|
|
|
||
|
|
pushButton_close = new QPushButton(title);
|
||
|
|
pushButton_close->setObjectName(QString::fromUtf8("pushButton_close"));
|
||
|
|
pushButton_close->setMinimumSize(QSize(30, 30));
|
||
|
|
pushButton_close->setMaximumSize(QSize(30, 30));
|
||
|
|
|
||
|
|
horizontalLayout_4->addWidget(pushButton_close);
|
||
|
|
|
||
|
|
|
||
|
|
verticalLayout_2->addWidget(title);
|
||
|
|
|
||
|
|
widget = new QWidget(centralWidget);
|
||
|
|
widget->setObjectName(QString::fromUtf8("widget"));
|
||
|
|
widget->setStyleSheet(QString::fromUtf8("background-color: rgb(50, 55, 60);"));
|
||
|
|
verticalLayout = new QVBoxLayout(widget);
|
||
|
|
verticalLayout->setSpacing(6);
|
||
|
|
verticalLayout->setContentsMargins(11, 11, 11, 11);
|
||
|
|
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
|
||
|
|
tableWidget = new QTableWidget(widget);
|
||
|
|
if (tableWidget->columnCount() < 3)
|
||
|
|
tableWidget->setColumnCount(3);
|
||
|
|
QTableWidgetItem *__qtablewidgetitem = new QTableWidgetItem();
|
||
|
|
tableWidget->setHorizontalHeaderItem(0, __qtablewidgetitem);
|
||
|
|
QTableWidgetItem *__qtablewidgetitem1 = new QTableWidgetItem();
|
||
|
|
tableWidget->setHorizontalHeaderItem(1, __qtablewidgetitem1);
|
||
|
|
QTableWidgetItem *__qtablewidgetitem2 = new QTableWidgetItem();
|
||
|
|
tableWidget->setHorizontalHeaderItem(2, __qtablewidgetitem2);
|
||
|
|
if (tableWidget->rowCount() < 2)
|
||
|
|
tableWidget->setRowCount(2);
|
||
|
|
QTableWidgetItem *__qtablewidgetitem3 = new QTableWidgetItem();
|
||
|
|
tableWidget->setVerticalHeaderItem(0, __qtablewidgetitem3);
|
||
|
|
QTableWidgetItem *__qtablewidgetitem4 = new QTableWidgetItem();
|
||
|
|
tableWidget->setVerticalHeaderItem(1, __qtablewidgetitem4);
|
||
|
|
tableWidget->setObjectName(QString::fromUtf8("tableWidget"));
|
||
|
|
tableWidget->setStyleSheet(QString::fromUtf8("background-color: rgb(32, 36, 40);"));
|
||
|
|
|
||
|
|
verticalLayout->addWidget(tableWidget);
|
||
|
|
|
||
|
|
horizontalLayout = new QHBoxLayout();
|
||
|
|
horizontalLayout->setSpacing(6);
|
||
|
|
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
|
||
|
|
pushButton_AddLine = new QPushButton(widget);
|
||
|
|
pushButton_AddLine->setObjectName(QString::fromUtf8("pushButton_AddLine"));
|
||
|
|
pushButton_AddLine->setMinimumSize(QSize(0, 25));
|
||
|
|
QFont font1;
|
||
|
|
font1.setPointSize(12);
|
||
|
|
pushButton_AddLine->setFont(font1);
|
||
|
|
pushButton_AddLine->setStyleSheet(QString::fromUtf8("border-radius:10px;\n"
|
||
|
|
"background-color: rgb(68, 74, 80);"));
|
||
|
|
|
||
|
|
horizontalLayout->addWidget(pushButton_AddLine);
|
||
|
|
|
||
|
|
pushButton_DeleteLine = new QPushButton(widget);
|
||
|
|
pushButton_DeleteLine->setObjectName(QString::fromUtf8("pushButton_DeleteLine"));
|
||
|
|
pushButton_DeleteLine->setMinimumSize(QSize(0, 25));
|
||
|
|
pushButton_DeleteLine->setFont(font1);
|
||
|
|
pushButton_DeleteLine->setStyleSheet(QString::fromUtf8("border-radius:10px;\n"
|
||
|
|
"background-color: rgb(68, 74, 80);"));
|
||
|
|
|
||
|
|
horizontalLayout->addWidget(pushButton_DeleteLine);
|
||
|
|
|
||
|
|
|
||
|
|
verticalLayout->addLayout(horizontalLayout);
|
||
|
|
|
||
|
|
|
||
|
|
verticalLayout_2->addWidget(widget);
|
||
|
|
|
||
|
|
pushButton_Save = new QPushButton(centralWidget);
|
||
|
|
pushButton_Save->setObjectName(QString::fromUtf8("pushButton_Save"));
|
||
|
|
pushButton_Save->setMinimumSize(QSize(0, 25));
|
||
|
|
pushButton_Save->setFont(font1);
|
||
|
|
pushButton_Save->setStyleSheet(QString::fromUtf8("border-radius:10px;\n"
|
||
|
|
"background-color: rgb(68, 74, 80);"));
|
||
|
|
|
||
|
|
verticalLayout_2->addWidget(pushButton_Save);
|
||
|
|
|
||
|
|
label = new QLabel(centralWidget);
|
||
|
|
label->setObjectName(QString::fromUtf8("label"));
|
||
|
|
label->setMinimumSize(QSize(0, 20));
|
||
|
|
label->setStyleSheet(QString::fromUtf8("border-radius:5px;\n"
|
||
|
|
"background-color: rgb(50, 55, 60);"));
|
||
|
|
|
||
|
|
verticalLayout_2->addWidget(label);
|
||
|
|
|
||
|
|
QtDefectSet->setCentralWidget(centralWidget);
|
||
|
|
|
||
|
|
retranslateUi(QtDefectSet);
|
||
|
|
|
||
|
|
QMetaObject::connectSlotsByName(QtDefectSet);
|
||
|
|
} // setupUi
|
||
|
|
|
||
|
|
void retranslateUi(QMainWindow *QtDefectSet)
|
||
|
|
{
|
||
|
|
QtDefectSet->setWindowTitle(QCoreApplication::translate("QtDefectSet", "QtAddCamera", nullptr));
|
||
|
|
label_icon->setText(QString());
|
||
|
|
label_7->setText(QCoreApplication::translate("QtDefectSet", "\347\274\272\351\231\267\347\261\273\345\210\253\345\220\215\347\247\260\350\256\276\347\275\256", nullptr));
|
||
|
|
pushButton_min->setText(QCoreApplication::translate("QtDefectSet", "\346\234\200\345\260\217\345\214\226", nullptr));
|
||
|
|
pushButton_max->setText(QCoreApplication::translate("QtDefectSet", "\346\234\200\345\244\247", nullptr));
|
||
|
|
pushButton_close->setText(QCoreApplication::translate("QtDefectSet", "\345\205\263\351\227\255", nullptr));
|
||
|
|
QTableWidgetItem *___qtablewidgetitem = tableWidget->horizontalHeaderItem(0);
|
||
|
|
___qtablewidgetitem->setText(QCoreApplication::translate("QtDefectSet", "\347\274\272\351\231\267\347\261\273\345\210\253", nullptr));
|
||
|
|
QTableWidgetItem *___qtablewidgetitem1 = tableWidget->horizontalHeaderItem(1);
|
||
|
|
___qtablewidgetitem1->setText(QCoreApplication::translate("QtDefectSet", "\347\274\272\351\231\267\345\220\215\347\247\260", nullptr));
|
||
|
|
QTableWidgetItem *___qtablewidgetitem2 = tableWidget->horizontalHeaderItem(2);
|
||
|
|
___qtablewidgetitem2->setText(QCoreApplication::translate("QtDefectSet", "\346\230\257\345\220\246\346\243\200\346\265\213", nullptr));
|
||
|
|
QTableWidgetItem *___qtablewidgetitem3 = tableWidget->verticalHeaderItem(0);
|
||
|
|
___qtablewidgetitem3->setText(QCoreApplication::translate("QtDefectSet", "\346\226\260\345\273\272\350\241\214", nullptr));
|
||
|
|
QTableWidgetItem *___qtablewidgetitem4 = tableWidget->verticalHeaderItem(1);
|
||
|
|
___qtablewidgetitem4->setText(QCoreApplication::translate("QtDefectSet", "\346\226\260\345\273\272\350\241\214", nullptr));
|
||
|
|
pushButton_AddLine->setText(QCoreApplication::translate("QtDefectSet", "\345\242\236\345\212\240\344\270\200\350\241\214", nullptr));
|
||
|
|
pushButton_DeleteLine->setText(QCoreApplication::translate("QtDefectSet", "\345\210\240\351\231\244\345\275\223\345\211\215\350\241\214", nullptr));
|
||
|
|
pushButton_Save->setText(QCoreApplication::translate("QtDefectSet", "\344\277\235\345\255\230", nullptr));
|
||
|
|
label->setText(QCoreApplication::translate("QtDefectSet", "\346\263\250\346\204\217:", nullptr));
|
||
|
|
} // retranslateUi
|
||
|
|
|
||
|
|
};
|
||
|
|
|
||
|
|
namespace Ui {
|
||
|
|
class QtDefectSetClass: public Ui_QtDefectSet {};
|
||
|
|
} // namespace Ui
|
||
|
|
|
||
|
|
QT_END_NAMESPACE
|
||
|
|
|
||
|
|
#endif // UI_QTDEFECTSET_H
|