mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
Сделал залогинивание, разлогинивание полностью рабочее
This commit is contained in:
@@ -27,12 +27,13 @@ class Ui_InstructorsAndTraineesWidget
|
||||
{
|
||||
public:
|
||||
QGridLayout *gridLayout;
|
||||
QHBoxLayout *horizontalLayout;
|
||||
QHBoxLayout *horizontalLayout_0;
|
||||
QGroupBox *groupBox;
|
||||
QGridLayout *gridLayout_2;
|
||||
QVBoxLayout *verticalLayout;
|
||||
QVBoxLayout *verticalLayout_2;
|
||||
QHBoxLayout *horizontalLayout_2;
|
||||
QVBoxLayout *verticalLayout_1;
|
||||
QVBoxLayout *verticalLayout_2;
|
||||
QHBoxLayout *horizontalLayout_1;
|
||||
QToolButton *btnConnectionToDB;
|
||||
QLabel *lblDBisConnected;
|
||||
QToolButton *btnAuthorizationInstructor;
|
||||
@@ -40,8 +41,7 @@ public:
|
||||
QLabel *lblLoggedInPrefix;
|
||||
QLabel *lblLoggedInInstructor;
|
||||
QSpacerItem *horizontalSpacer;
|
||||
QToolButton *btnDocTasks;
|
||||
QToolButton *toolButton;
|
||||
QToolButton *btnUpdateStyleSheet;
|
||||
|
||||
void setupUi(QWidget *InstructorsAndTraineesWidget)
|
||||
{
|
||||
@@ -54,22 +54,30 @@ public:
|
||||
InstructorsAndTraineesWidget->setFont(font);
|
||||
gridLayout = new QGridLayout(InstructorsAndTraineesWidget);
|
||||
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
|
||||
horizontalLayout = new QHBoxLayout();
|
||||
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
|
||||
horizontalLayout_0 = new QHBoxLayout();
|
||||
horizontalLayout_0->setObjectName(QString::fromUtf8("horizontalLayout_0"));
|
||||
groupBox = new QGroupBox(InstructorsAndTraineesWidget);
|
||||
groupBox->setObjectName(QString::fromUtf8("groupBox"));
|
||||
groupBox->setFont(font);
|
||||
gridLayout_2 = new QGridLayout(groupBox);
|
||||
gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
|
||||
verticalLayout = new QVBoxLayout();
|
||||
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
|
||||
horizontalLayout_2 = new QHBoxLayout();
|
||||
horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
|
||||
verticalLayout_1 = new QVBoxLayout();
|
||||
verticalLayout_1->setObjectName(QString::fromUtf8("verticalLayout_1"));
|
||||
|
||||
gridLayout_2->addLayout(verticalLayout, 1, 0, 1, 1);
|
||||
horizontalLayout_2->addLayout(verticalLayout_1);
|
||||
|
||||
verticalLayout_2 = new QVBoxLayout();
|
||||
verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
|
||||
horizontalLayout_2 = new QHBoxLayout();
|
||||
horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
|
||||
|
||||
horizontalLayout_2->addLayout(verticalLayout_2);
|
||||
|
||||
|
||||
gridLayout_2->addLayout(horizontalLayout_2, 1, 0, 1, 1);
|
||||
|
||||
horizontalLayout_1 = new QHBoxLayout();
|
||||
horizontalLayout_1->setObjectName(QString::fromUtf8("horizontalLayout_1"));
|
||||
btnConnectionToDB = new QToolButton(groupBox);
|
||||
btnConnectionToDB->setObjectName(QString::fromUtf8("btnConnectionToDB"));
|
||||
btnConnectionToDB->setMinimumSize(QSize(130, 58));
|
||||
@@ -80,7 +88,7 @@ public:
|
||||
btnConnectionToDB->setCheckable(true);
|
||||
btnConnectionToDB->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
|
||||
|
||||
horizontalLayout_2->addWidget(btnConnectionToDB);
|
||||
horizontalLayout_1->addWidget(btnConnectionToDB);
|
||||
|
||||
lblDBisConnected = new QLabel(groupBox);
|
||||
lblDBisConnected->setObjectName(QString::fromUtf8("lblDBisConnected"));
|
||||
@@ -89,7 +97,7 @@ public:
|
||||
lblDBisConnected->setPixmap(QPixmap(QString::fromUtf8(":/icons/circleGray.png")));
|
||||
lblDBisConnected->setScaledContents(true);
|
||||
|
||||
horizontalLayout_2->addWidget(lblDBisConnected);
|
||||
horizontalLayout_1->addWidget(lblDBisConnected);
|
||||
|
||||
btnAuthorizationInstructor = new QToolButton(groupBox);
|
||||
btnAuthorizationInstructor->setObjectName(QString::fromUtf8("btnAuthorizationInstructor"));
|
||||
@@ -101,7 +109,7 @@ public:
|
||||
btnAuthorizationInstructor->setCheckable(true);
|
||||
btnAuthorizationInstructor->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
|
||||
|
||||
horizontalLayout_2->addWidget(btnAuthorizationInstructor);
|
||||
horizontalLayout_1->addWidget(btnAuthorizationInstructor);
|
||||
|
||||
lblLoggedIn = new QLabel(groupBox);
|
||||
lblLoggedIn->setObjectName(QString::fromUtf8("lblLoggedIn"));
|
||||
@@ -110,7 +118,7 @@ public:
|
||||
lblLoggedIn->setPixmap(QPixmap(QString::fromUtf8(":/icons/circleGray.png")));
|
||||
lblLoggedIn->setScaledContents(true);
|
||||
|
||||
horizontalLayout_2->addWidget(lblLoggedIn);
|
||||
horizontalLayout_1->addWidget(lblLoggedIn);
|
||||
|
||||
lblLoggedInPrefix = new QLabel(groupBox);
|
||||
lblLoggedInPrefix->setObjectName(QString::fromUtf8("lblLoggedInPrefix"));
|
||||
@@ -118,46 +126,32 @@ public:
|
||||
lblLoggedInPrefix->setTextFormat(Qt::AutoText);
|
||||
lblLoggedInPrefix->setScaledContents(false);
|
||||
|
||||
horizontalLayout_2->addWidget(lblLoggedInPrefix);
|
||||
horizontalLayout_1->addWidget(lblLoggedInPrefix);
|
||||
|
||||
lblLoggedInInstructor = new QLabel(groupBox);
|
||||
lblLoggedInInstructor->setObjectName(QString::fromUtf8("lblLoggedInInstructor"));
|
||||
lblLoggedInInstructor->setMaximumSize(QSize(16777215, 40));
|
||||
|
||||
horizontalLayout_2->addWidget(lblLoggedInInstructor);
|
||||
horizontalLayout_1->addWidget(lblLoggedInInstructor);
|
||||
|
||||
horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||
|
||||
horizontalLayout_2->addItem(horizontalSpacer);
|
||||
horizontalLayout_1->addItem(horizontalSpacer);
|
||||
|
||||
btnDocTasks = new QToolButton(groupBox);
|
||||
btnDocTasks->setObjectName(QString::fromUtf8("btnDocTasks"));
|
||||
btnDocTasks->setMinimumSize(QSize(140, 58));
|
||||
QIcon icon2;
|
||||
icon2.addFile(QString::fromUtf8(":/icons/docTasks.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
btnDocTasks->setIcon(icon2);
|
||||
btnDocTasks->setIconSize(QSize(32, 32));
|
||||
btnDocTasks->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
|
||||
btnUpdateStyleSheet = new QToolButton(groupBox);
|
||||
btnUpdateStyleSheet->setObjectName(QString::fromUtf8("btnUpdateStyleSheet"));
|
||||
btnUpdateStyleSheet->setMinimumSize(QSize(58, 58));
|
||||
|
||||
horizontalLayout_2->addWidget(btnDocTasks);
|
||||
|
||||
toolButton = new QToolButton(groupBox);
|
||||
toolButton->setObjectName(QString::fromUtf8("toolButton"));
|
||||
toolButton->setMinimumSize(QSize(58, 58));
|
||||
|
||||
horizontalLayout_2->addWidget(toolButton);
|
||||
horizontalLayout_1->addWidget(btnUpdateStyleSheet);
|
||||
|
||||
|
||||
verticalLayout_2->addLayout(horizontalLayout_2);
|
||||
gridLayout_2->addLayout(horizontalLayout_1, 0, 0, 1, 1);
|
||||
|
||||
|
||||
gridLayout_2->addLayout(verticalLayout_2, 0, 0, 1, 1);
|
||||
horizontalLayout_0->addWidget(groupBox);
|
||||
|
||||
|
||||
horizontalLayout->addWidget(groupBox);
|
||||
|
||||
|
||||
gridLayout->addLayout(horizontalLayout, 0, 0, 1, 1);
|
||||
gridLayout->addLayout(horizontalLayout_0, 0, 0, 1, 1);
|
||||
|
||||
|
||||
retranslateUi(InstructorsAndTraineesWidget);
|
||||
@@ -175,11 +169,7 @@ public:
|
||||
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)
|
||||
btnDocTasks->setShortcut(QCoreApplication::translate("InstructorsAndTraineesWidget", "Ctrl+Shift+S", nullptr));
|
||||
#endif // QT_CONFIG(shortcut)
|
||||
toolButton->setText(QCoreApplication::translate("InstructorsAndTraineesWidget", "Update StyleSheet", nullptr));
|
||||
btnUpdateStyleSheet->setText(QCoreApplication::translate("InstructorsAndTraineesWidget", "Update StyleSheet", nullptr));
|
||||
} // retranslateUi
|
||||
|
||||
};
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#define UI_MESSANGERWIDGET_H
|
||||
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtGui/QIcon>
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtWidgets/QGridLayout>
|
||||
#include <QtWidgets/QGroupBox>
|
||||
@@ -84,6 +85,11 @@ public:
|
||||
sizePolicy.setVerticalStretch(0);
|
||||
sizePolicy.setHeightForWidth(btnSend->sizePolicy().hasHeightForWidth());
|
||||
btnSend->setSizePolicy(sizePolicy);
|
||||
QIcon icon;
|
||||
icon.addFile(QString::fromUtf8(":/icons/sendMsg.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
btnSend->setIcon(icon);
|
||||
btnSend->setIconSize(QSize(32, 32));
|
||||
btnSend->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
||||
|
||||
horizontalLayout->addWidget(btnSend);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user