mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
Перекомпоновал ui
This commit is contained in:
@@ -34,6 +34,7 @@ public:
|
||||
QVBoxLayout *verticalLayout_2;
|
||||
QHBoxLayout *horizontalLayout_2;
|
||||
QToolButton *btnConnectionToDB;
|
||||
QLabel *lblDBisConnected;
|
||||
QToolButton *btnAuthorizationInstructor;
|
||||
QLabel *lblLoggedIn;
|
||||
QLabel *lblLoggedInPrefix;
|
||||
@@ -80,9 +81,18 @@ public:
|
||||
|
||||
horizontalLayout_2->addWidget(btnConnectionToDB);
|
||||
|
||||
lblDBisConnected = new QLabel(groupBox);
|
||||
lblDBisConnected->setObjectName(QString::fromUtf8("lblDBisConnected"));
|
||||
lblDBisConnected->setMinimumSize(QSize(32, 32));
|
||||
lblDBisConnected->setMaximumSize(QSize(32, 32));
|
||||
lblDBisConnected->setPixmap(QPixmap(QString::fromUtf8(":/icons/circleGray.png")));
|
||||
lblDBisConnected->setScaledContents(true);
|
||||
|
||||
horizontalLayout_2->addWidget(lblDBisConnected);
|
||||
|
||||
btnAuthorizationInstructor = new QToolButton(groupBox);
|
||||
btnAuthorizationInstructor->setObjectName(QString::fromUtf8("btnAuthorizationInstructor"));
|
||||
btnAuthorizationInstructor->setMinimumSize(QSize(140, 58));
|
||||
btnAuthorizationInstructor->setMinimumSize(QSize(170, 58));
|
||||
QIcon icon1;
|
||||
icon1.addFile(QString::fromUtf8(":/icons/login-user.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
btnAuthorizationInstructor->setIcon(icon1);
|
||||
@@ -94,8 +104,8 @@ public:
|
||||
|
||||
lblLoggedIn = new QLabel(groupBox);
|
||||
lblLoggedIn->setObjectName(QString::fromUtf8("lblLoggedIn"));
|
||||
lblLoggedIn->setMinimumSize(QSize(40, 40));
|
||||
lblLoggedIn->setMaximumSize(QSize(40, 40));
|
||||
lblLoggedIn->setMinimumSize(QSize(32, 32));
|
||||
lblLoggedIn->setMaximumSize(QSize(32, 32));
|
||||
lblLoggedIn->setPixmap(QPixmap(QString::fromUtf8(":/icons/circleGray.png")));
|
||||
lblLoggedIn->setScaledContents(true);
|
||||
|
||||
@@ -153,6 +163,7 @@ public:
|
||||
InstructorsAndTraineesWidget->setWindowTitle(QCoreApplication::translate("InstructorsAndTraineesWidget", "Form", nullptr));
|
||||
groupBox->setTitle(QCoreApplication::translate("InstructorsAndTraineesWidget", "Database LMS", nullptr));
|
||||
btnConnectionToDB->setText(QCoreApplication::translate("InstructorsAndTraineesWidget", "Connection to DB", nullptr));
|
||||
lblDBisConnected->setText(QString());
|
||||
btnAuthorizationInstructor->setText(QCoreApplication::translate("InstructorsAndTraineesWidget", "Authorization Instructor", nullptr));
|
||||
lblLoggedIn->setText(QString());
|
||||
lblLoggedInPrefix->setText(QCoreApplication::translate("InstructorsAndTraineesWidget", "Logged in Instructor: ", nullptr));
|
||||
|
||||
@@ -26,13 +26,14 @@ class Ui_ViewerInstructors
|
||||
{
|
||||
public:
|
||||
QGridLayout *gridLayout;
|
||||
QHBoxLayout *horizontalLayout_1;
|
||||
QHBoxLayout *horizontalLayout_0;
|
||||
QGroupBox *groupBox;
|
||||
QGridLayout *gridLayout_2;
|
||||
QHBoxLayout *horizontalLayout_2;
|
||||
QVBoxLayout *verticalLayout;
|
||||
QHBoxLayout *horizontalLayout_1;
|
||||
QHBoxLayout *horizontalLayout_2;
|
||||
QSpacerItem *horizontalSpacer;
|
||||
QToolButton *btnEditorInstructors;
|
||||
QSpacerItem *verticalSpacer;
|
||||
|
||||
void setupUi(QWidget *ViewerInstructors)
|
||||
{
|
||||
@@ -45,8 +46,8 @@ public:
|
||||
ViewerInstructors->setFont(font);
|
||||
gridLayout = new QGridLayout(ViewerInstructors);
|
||||
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
|
||||
horizontalLayout_1 = new QHBoxLayout();
|
||||
horizontalLayout_1->setObjectName(QString::fromUtf8("horizontalLayout_1"));
|
||||
horizontalLayout_0 = new QHBoxLayout();
|
||||
horizontalLayout_0->setObjectName(QString::fromUtf8("horizontalLayout_0"));
|
||||
groupBox = new QGroupBox(ViewerInstructors);
|
||||
groupBox->setObjectName(QString::fromUtf8("groupBox"));
|
||||
QFont font1;
|
||||
@@ -54,10 +55,19 @@ public:
|
||||
groupBox->setFont(font1);
|
||||
gridLayout_2 = new QGridLayout(groupBox);
|
||||
gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
|
||||
horizontalLayout_2 = new QHBoxLayout();
|
||||
horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
|
||||
verticalLayout = new QVBoxLayout();
|
||||
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
|
||||
horizontalLayout_1 = new QHBoxLayout();
|
||||
horizontalLayout_1->setObjectName(QString::fromUtf8("horizontalLayout_1"));
|
||||
|
||||
verticalLayout->addLayout(horizontalLayout_1);
|
||||
|
||||
horizontalLayout_2 = new QHBoxLayout();
|
||||
horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
|
||||
horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||
|
||||
horizontalLayout_2->addItem(horizontalSpacer);
|
||||
|
||||
btnEditorInstructors = new QToolButton(groupBox);
|
||||
btnEditorInstructors->setObjectName(QString::fromUtf8("btnEditorInstructors"));
|
||||
btnEditorInstructors->setEnabled(false);
|
||||
@@ -68,23 +78,19 @@ public:
|
||||
btnEditorInstructors->setIconSize(QSize(32, 32));
|
||||
btnEditorInstructors->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
|
||||
|
||||
verticalLayout->addWidget(btnEditorInstructors);
|
||||
|
||||
verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
|
||||
|
||||
verticalLayout->addItem(verticalSpacer);
|
||||
horizontalLayout_2->addWidget(btnEditorInstructors);
|
||||
|
||||
|
||||
horizontalLayout_2->addLayout(verticalLayout);
|
||||
verticalLayout->addLayout(horizontalLayout_2);
|
||||
|
||||
|
||||
gridLayout_2->addLayout(horizontalLayout_2, 0, 0, 1, 1);
|
||||
gridLayout_2->addLayout(verticalLayout, 0, 0, 1, 1);
|
||||
|
||||
|
||||
horizontalLayout_1->addWidget(groupBox);
|
||||
horizontalLayout_0->addWidget(groupBox);
|
||||
|
||||
|
||||
gridLayout->addLayout(horizontalLayout_1, 0, 0, 1, 1);
|
||||
gridLayout->addLayout(horizontalLayout_0, 0, 0, 1, 1);
|
||||
|
||||
|
||||
retranslateUi(ViewerInstructors);
|
||||
|
||||
@@ -26,13 +26,14 @@ class Ui_ViewerTrainees
|
||||
{
|
||||
public:
|
||||
QGridLayout *gridLayout;
|
||||
QHBoxLayout *horizontalLayout_1;
|
||||
QHBoxLayout *horizontalLayout_0;
|
||||
QGroupBox *groupBox;
|
||||
QGridLayout *gridLayout_2;
|
||||
QHBoxLayout *horizontalLayout_2;
|
||||
QVBoxLayout *verticalLayout;
|
||||
QHBoxLayout *horizontalLayout_1;
|
||||
QHBoxLayout *horizontalLayout_2;
|
||||
QSpacerItem *horizontalSpacer;
|
||||
QToolButton *btnEditorTrainees;
|
||||
QSpacerItem *verticalSpacer;
|
||||
|
||||
void setupUi(QWidget *ViewerTrainees)
|
||||
{
|
||||
@@ -45,8 +46,8 @@ public:
|
||||
ViewerTrainees->setFont(font);
|
||||
gridLayout = new QGridLayout(ViewerTrainees);
|
||||
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
|
||||
horizontalLayout_1 = new QHBoxLayout();
|
||||
horizontalLayout_1->setObjectName(QString::fromUtf8("horizontalLayout_1"));
|
||||
horizontalLayout_0 = new QHBoxLayout();
|
||||
horizontalLayout_0->setObjectName(QString::fromUtf8("horizontalLayout_0"));
|
||||
groupBox = new QGroupBox(ViewerTrainees);
|
||||
groupBox->setObjectName(QString::fromUtf8("groupBox"));
|
||||
QFont font1;
|
||||
@@ -54,10 +55,19 @@ public:
|
||||
groupBox->setFont(font1);
|
||||
gridLayout_2 = new QGridLayout(groupBox);
|
||||
gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
|
||||
horizontalLayout_2 = new QHBoxLayout();
|
||||
horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
|
||||
verticalLayout = new QVBoxLayout();
|
||||
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
|
||||
horizontalLayout_1 = new QHBoxLayout();
|
||||
horizontalLayout_1->setObjectName(QString::fromUtf8("horizontalLayout_1"));
|
||||
|
||||
verticalLayout->addLayout(horizontalLayout_1);
|
||||
|
||||
horizontalLayout_2 = new QHBoxLayout();
|
||||
horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
|
||||
horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||
|
||||
horizontalLayout_2->addItem(horizontalSpacer);
|
||||
|
||||
btnEditorTrainees = new QToolButton(groupBox);
|
||||
btnEditorTrainees->setObjectName(QString::fromUtf8("btnEditorTrainees"));
|
||||
btnEditorTrainees->setEnabled(false);
|
||||
@@ -68,23 +78,19 @@ public:
|
||||
btnEditorTrainees->setIconSize(QSize(32, 32));
|
||||
btnEditorTrainees->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
|
||||
|
||||
verticalLayout->addWidget(btnEditorTrainees);
|
||||
|
||||
verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
|
||||
|
||||
verticalLayout->addItem(verticalSpacer);
|
||||
horizontalLayout_2->addWidget(btnEditorTrainees);
|
||||
|
||||
|
||||
horizontalLayout_2->addLayout(verticalLayout);
|
||||
verticalLayout->addLayout(horizontalLayout_2);
|
||||
|
||||
|
||||
gridLayout_2->addLayout(horizontalLayout_2, 0, 0, 1, 1);
|
||||
gridLayout_2->addLayout(verticalLayout, 0, 0, 1, 1);
|
||||
|
||||
|
||||
horizontalLayout_1->addWidget(groupBox);
|
||||
horizontalLayout_0->addWidget(groupBox);
|
||||
|
||||
|
||||
gridLayout->addLayout(horizontalLayout_1, 0, 2, 2, 1);
|
||||
gridLayout->addLayout(horizontalLayout_0, 0, 2, 2, 1);
|
||||
|
||||
|
||||
retranslateUi(ViewerTrainees);
|
||||
|
||||
Reference in New Issue
Block a user