ref: change instructor behaviour

This commit is contained in:
semenov
2025-01-22 13:22:45 +03:00
parent c1cf263f5f
commit d09b8b5727
29 changed files with 109 additions and 57 deletions

View File

@@ -30,7 +30,7 @@ public:
QVBoxLayout *updateListLayout;
QLabel *NotificationLabel;
QListWidget *updateListWidget;
QLabel *updateActionListLabel;
QVBoxLayout *labelsLayout;
QHBoxLayout *ButtonsLayout;
QWidget *instructorButtonGroup;
QHBoxLayout *updateButtonGroup;
@@ -70,6 +70,7 @@ public:
sizePolicy1.setVerticalStretch(0);
sizePolicy1.setHeightForWidth(NotificationLabel->sizePolicy().hasHeightForWidth());
NotificationLabel->setSizePolicy(sizePolicy1);
NotificationLabel->setOpenExternalLinks(false);
updateListLayout->addWidget(NotificationLabel);
@@ -77,13 +78,15 @@ public:
updateListWidget->setObjectName(QString::fromUtf8("updateListWidget"));
updateListWidget->setFrameShape(QFrame::NoFrame);
updateListWidget->setFrameShadow(QFrame::Plain);
updateListWidget->setBatchSize(100);
updateListLayout->addWidget(updateListWidget);
updateActionListLabel = new QLabel(verticalLayoutWidget);
updateActionListLabel->setObjectName(QString::fromUtf8("updateActionListLabel"));
labelsLayout = new QVBoxLayout();
labelsLayout->setSpacing(1);
labelsLayout->setObjectName(QString::fromUtf8("labelsLayout"));
updateListLayout->addWidget(updateActionListLabel);
updateListLayout->addLayout(labelsLayout);
mainLayout->addLayout(updateListLayout);
@@ -156,7 +159,6 @@ public:
{
UpdateNotifyWidget->setWindowTitle(QCoreApplication::translate("UpdateNotifyWidget", "Form", nullptr));
NotificationLabel->setText(QCoreApplication::translate("UpdateNotifyWidget", "\320\236\320\261\320\275\320\260\321\200\321\203\320\266\320\265\320\275\321\213 \320\275\320\276\320\262\321\213\320\265 \321\204\320\260\320\271\320\273\321\213:", nullptr));
updateActionListLabel->setText(QCoreApplication::translate("UpdateNotifyWidget", "text", nullptr));
loadToServerButton->setText(QCoreApplication::translate("UpdateNotifyWidget", "\320\222\321\213\320\263\321\200\321\203\320\267\320\270\321\202\321\214 \320\270\320\267\320\274\320\265\320\275\320\265\320\275\320\270\321\217", nullptr));
undoChangesButton->setText(QCoreApplication::translate("UpdateNotifyWidget", "\320\236\321\202\320\274\320\265\320\275\320\270\321\202\321\214 \320\270\320\267\320\274\320\265\320\275\320\265\320\275\320\270\321\217", nullptr));
startWithCurrentChangesButton->setText(QCoreApplication::translate("UpdateNotifyWidget", "\320\227\320\260\320\277\321\203\321\201\321\202\320\270\321\202\321\214 \320\261\320\265\320\267 \320\276\321\202\320\277\321\200\320\260\320\262\320\272\320\270", nullptr));