mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
feat: change new file instructor position
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtWidgets/QFrame>
|
||||
#include <QtWidgets/QHBoxLayout>
|
||||
#include <QtWidgets/QLabel>
|
||||
#include <QtWidgets/QListWidget>
|
||||
@@ -23,40 +24,127 @@ QT_BEGIN_NAMESPACE
|
||||
class Ui_UpdateNotifyWidget
|
||||
{
|
||||
public:
|
||||
QVBoxLayout *verticalLayout;
|
||||
QFrame *backgroundUpdate;
|
||||
QWidget *verticalLayoutWidget;
|
||||
QVBoxLayout *mainLayout;
|
||||
QVBoxLayout *updateListLayout;
|
||||
QLabel *NotificationLabel;
|
||||
QListWidget *updateListWidget;
|
||||
QHBoxLayout *horizontalLayout;
|
||||
QLabel *updateActionListLabel;
|
||||
QHBoxLayout *ButtonsLayout;
|
||||
QWidget *instructorButtonGroup;
|
||||
QHBoxLayout *updateButtonGroup;
|
||||
QPushButton *loadToServerButton;
|
||||
QPushButton *undoChangesButton;
|
||||
QPushButton *startWithCurrentChangesButton;
|
||||
QPushButton *closeButton;
|
||||
|
||||
void setupUi(QWidget *UpdateNotifyWidget)
|
||||
{
|
||||
if (UpdateNotifyWidget->objectName().isEmpty())
|
||||
UpdateNotifyWidget->setObjectName(QString::fromUtf8("UpdateNotifyWidget"));
|
||||
UpdateNotifyWidget->resize(726, 429);
|
||||
verticalLayout = new QVBoxLayout(UpdateNotifyWidget);
|
||||
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
|
||||
NotificationLabel = new QLabel(UpdateNotifyWidget);
|
||||
UpdateNotifyWidget->resize(800, 560);
|
||||
QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
|
||||
sizePolicy.setHorizontalStretch(0);
|
||||
sizePolicy.setVerticalStretch(0);
|
||||
sizePolicy.setHeightForWidth(UpdateNotifyWidget->sizePolicy().hasHeightForWidth());
|
||||
UpdateNotifyWidget->setSizePolicy(sizePolicy);
|
||||
backgroundUpdate = new QFrame(UpdateNotifyWidget);
|
||||
backgroundUpdate->setObjectName(QString::fromUtf8("backgroundUpdate"));
|
||||
backgroundUpdate->setGeometry(QRect(0, 0, 801, 561));
|
||||
backgroundUpdate->setFrameShape(QFrame::NoFrame);
|
||||
backgroundUpdate->setFrameShadow(QFrame::Raised);
|
||||
verticalLayoutWidget = new QWidget(backgroundUpdate);
|
||||
verticalLayoutWidget->setObjectName(QString::fromUtf8("verticalLayoutWidget"));
|
||||
verticalLayoutWidget->setGeometry(QRect(0, -10, 801, 571));
|
||||
mainLayout = new QVBoxLayout(verticalLayoutWidget);
|
||||
mainLayout->setSpacing(6);
|
||||
mainLayout->setObjectName(QString::fromUtf8("mainLayout"));
|
||||
mainLayout->setContentsMargins(5, 10, 5, 10);
|
||||
updateListLayout = new QVBoxLayout();
|
||||
updateListLayout->setObjectName(QString::fromUtf8("updateListLayout"));
|
||||
NotificationLabel = new QLabel(verticalLayoutWidget);
|
||||
NotificationLabel->setObjectName(QString::fromUtf8("NotificationLabel"));
|
||||
QSizePolicy sizePolicy1(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
sizePolicy1.setHorizontalStretch(0);
|
||||
sizePolicy1.setVerticalStretch(0);
|
||||
sizePolicy1.setHeightForWidth(NotificationLabel->sizePolicy().hasHeightForWidth());
|
||||
NotificationLabel->setSizePolicy(sizePolicy1);
|
||||
|
||||
verticalLayout->addWidget(NotificationLabel);
|
||||
updateListLayout->addWidget(NotificationLabel);
|
||||
|
||||
updateListWidget = new QListWidget(UpdateNotifyWidget);
|
||||
updateListWidget = new QListWidget(verticalLayoutWidget);
|
||||
updateListWidget->setObjectName(QString::fromUtf8("updateListWidget"));
|
||||
updateListWidget->setFrameShape(QFrame::NoFrame);
|
||||
updateListWidget->setFrameShadow(QFrame::Plain);
|
||||
|
||||
verticalLayout->addWidget(updateListWidget);
|
||||
updateListLayout->addWidget(updateListWidget);
|
||||
|
||||
horizontalLayout = new QHBoxLayout();
|
||||
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
|
||||
closeButton = new QPushButton(UpdateNotifyWidget);
|
||||
updateActionListLabel = new QLabel(verticalLayoutWidget);
|
||||
updateActionListLabel->setObjectName(QString::fromUtf8("updateActionListLabel"));
|
||||
|
||||
updateListLayout->addWidget(updateActionListLabel);
|
||||
|
||||
|
||||
mainLayout->addLayout(updateListLayout);
|
||||
|
||||
ButtonsLayout = new QHBoxLayout();
|
||||
ButtonsLayout->setSpacing(6);
|
||||
ButtonsLayout->setObjectName(QString::fromUtf8("ButtonsLayout"));
|
||||
ButtonsLayout->setSizeConstraint(QLayout::SetDefaultConstraint);
|
||||
ButtonsLayout->setContentsMargins(-1, -1, -1, 0);
|
||||
instructorButtonGroup = new QWidget(verticalLayoutWidget);
|
||||
instructorButtonGroup->setObjectName(QString::fromUtf8("instructorButtonGroup"));
|
||||
instructorButtonGroup->setEnabled(true);
|
||||
sizePolicy.setHeightForWidth(instructorButtonGroup->sizePolicy().hasHeightForWidth());
|
||||
instructorButtonGroup->setSizePolicy(sizePolicy);
|
||||
instructorButtonGroup->setMinimumSize(QSize(520, 45));
|
||||
updateButtonGroup = new QHBoxLayout(instructorButtonGroup);
|
||||
updateButtonGroup->setSpacing(5);
|
||||
updateButtonGroup->setObjectName(QString::fromUtf8("updateButtonGroup"));
|
||||
updateButtonGroup->setContentsMargins(0, 0, 0, 0);
|
||||
loadToServerButton = new QPushButton(instructorButtonGroup);
|
||||
loadToServerButton->setObjectName(QString::fromUtf8("loadToServerButton"));
|
||||
QSizePolicy sizePolicy2(QSizePolicy::Preferred, QSizePolicy::Minimum);
|
||||
sizePolicy2.setHorizontalStretch(0);
|
||||
sizePolicy2.setVerticalStretch(0);
|
||||
sizePolicy2.setHeightForWidth(loadToServerButton->sizePolicy().hasHeightForWidth());
|
||||
loadToServerButton->setSizePolicy(sizePolicy2);
|
||||
loadToServerButton->setMinimumSize(QSize(0, 35));
|
||||
loadToServerButton->setMaximumSize(QSize(16777215, 40));
|
||||
|
||||
updateButtonGroup->addWidget(loadToServerButton);
|
||||
|
||||
undoChangesButton = new QPushButton(instructorButtonGroup);
|
||||
undoChangesButton->setObjectName(QString::fromUtf8("undoChangesButton"));
|
||||
sizePolicy2.setHeightForWidth(undoChangesButton->sizePolicy().hasHeightForWidth());
|
||||
undoChangesButton->setSizePolicy(sizePolicy2);
|
||||
undoChangesButton->setMinimumSize(QSize(0, 35));
|
||||
undoChangesButton->setMaximumSize(QSize(16777215, 40));
|
||||
|
||||
updateButtonGroup->addWidget(undoChangesButton);
|
||||
|
||||
startWithCurrentChangesButton = new QPushButton(instructorButtonGroup);
|
||||
startWithCurrentChangesButton->setObjectName(QString::fromUtf8("startWithCurrentChangesButton"));
|
||||
sizePolicy2.setHeightForWidth(startWithCurrentChangesButton->sizePolicy().hasHeightForWidth());
|
||||
startWithCurrentChangesButton->setSizePolicy(sizePolicy2);
|
||||
startWithCurrentChangesButton->setMinimumSize(QSize(0, 35));
|
||||
startWithCurrentChangesButton->setMaximumSize(QSize(16777215, 40));
|
||||
|
||||
updateButtonGroup->addWidget(startWithCurrentChangesButton);
|
||||
|
||||
|
||||
ButtonsLayout->addWidget(instructorButtonGroup);
|
||||
|
||||
closeButton = new QPushButton(verticalLayoutWidget);
|
||||
closeButton->setObjectName(QString::fromUtf8("closeButton"));
|
||||
closeButton->setMinimumSize(QSize(0, 35));
|
||||
closeButton->setMinimumSize(QSize(0, 40));
|
||||
closeButton->setMaximumSize(QSize(200, 16777215));
|
||||
|
||||
horizontalLayout->addWidget(closeButton);
|
||||
ButtonsLayout->addWidget(closeButton);
|
||||
|
||||
|
||||
verticalLayout->addLayout(horizontalLayout);
|
||||
mainLayout->addLayout(ButtonsLayout);
|
||||
|
||||
|
||||
retranslateUi(UpdateNotifyWidget);
|
||||
@@ -68,6 +156,10 @@ 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));
|
||||
closeButton->setText(QCoreApplication::translate("UpdateNotifyWidget", "\320\227\320\260\320\272\321\200\321\213\321\202\321\214", nullptr));
|
||||
} // retranslateUi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user