Улучшил индикацию

This commit is contained in:
krivoshein
2024-11-28 12:03:36 +03:00
parent f98b2e2beb
commit 7011ed1fe8
30 changed files with 639 additions and 317 deletions

View File

@@ -35,9 +35,10 @@ public:
QHBoxLayout *horizontalLayout_2;
QToolButton *btnConnectionToDB;
QToolButton *btnAuthorizationInstructor;
QSpacerItem *horizontalSpacer;
QLabel *label;
QLabel *lblLoggedIn;
QLabel *lblLoggedInPrefix;
QLabel *lblLoggedInInstructor;
QSpacerItem *horizontalSpacer;
QToolButton *btnDocTasks;
void setupUi(QWidget *InstructorsAndTraineesWidget)
@@ -91,20 +92,33 @@ public:
horizontalLayout_2->addWidget(btnAuthorizationInstructor);
horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
lblLoggedIn = new QLabel(groupBox);
lblLoggedIn->setObjectName(QString::fromUtf8("lblLoggedIn"));
lblLoggedIn->setMinimumSize(QSize(40, 40));
lblLoggedIn->setMaximumSize(QSize(40, 40));
lblLoggedIn->setPixmap(QPixmap(QString::fromUtf8(":/icons/circleGray.png")));
lblLoggedIn->setScaledContents(true);
horizontalLayout_2->addItem(horizontalSpacer);
horizontalLayout_2->addWidget(lblLoggedIn);
label = new QLabel(groupBox);
label->setObjectName(QString::fromUtf8("label"));
lblLoggedInPrefix = new QLabel(groupBox);
lblLoggedInPrefix->setObjectName(QString::fromUtf8("lblLoggedInPrefix"));
lblLoggedInPrefix->setMaximumSize(QSize(16777215, 40));
lblLoggedInPrefix->setTextFormat(Qt::AutoText);
lblLoggedInPrefix->setScaledContents(false);
horizontalLayout_2->addWidget(label);
horizontalLayout_2->addWidget(lblLoggedInPrefix);
lblLoggedInInstructor = new QLabel(groupBox);
lblLoggedInInstructor->setObjectName(QString::fromUtf8("lblLoggedInInstructor"));
lblLoggedInInstructor->setMaximumSize(QSize(16777215, 40));
horizontalLayout_2->addWidget(lblLoggedInInstructor);
horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
horizontalLayout_2->addItem(horizontalSpacer);
btnDocTasks = new QToolButton(groupBox);
btnDocTasks->setObjectName(QString::fromUtf8("btnDocTasks"));
btnDocTasks->setMinimumSize(QSize(140, 58));
@@ -140,7 +154,8 @@ public:
groupBox->setTitle(QCoreApplication::translate("InstructorsAndTraineesWidget", "Database LMS", nullptr));
btnConnectionToDB->setText(QCoreApplication::translate("InstructorsAndTraineesWidget", "Connection to DB", nullptr));
btnAuthorizationInstructor->setText(QCoreApplication::translate("InstructorsAndTraineesWidget", "Authorization Instructor", nullptr));
label->setText(QCoreApplication::translate("InstructorsAndTraineesWidget", "Logged in instructor:", nullptr));
lblLoggedIn->setText(QString());
lblLoggedInPrefix->setText(QCoreApplication::translate("InstructorsAndTraineesWidget", "Logged in Instructor: ", nullptr));
lblLoggedInInstructor->setText(QCoreApplication::translate("InstructorsAndTraineesWidget", "none", nullptr));
btnDocTasks->setText(QCoreApplication::translate("InstructorsAndTraineesWidget", "Doc tasks", nullptr));
#if QT_CONFIG(shortcut)