mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
refact0
This commit is contained in:
@@ -11,6 +11,11 @@ DialogAuthorizationInstructor::DialogAuthorizationInstructor(QWidget *parent) :
|
||||
ui->editPassword->setProperty("mandatoryField", true);
|
||||
|
||||
ui->editPassword->setEchoMode(QLineEdit::EchoMode::Password);
|
||||
|
||||
#ifdef PROJECT_TYPE_DEBUG
|
||||
ui->editLogin->setText("admin");
|
||||
ui->editPassword->setText("admin");
|
||||
#endif
|
||||
}
|
||||
|
||||
DialogAuthorizationInstructor::~DialogAuthorizationInstructor()
|
||||
@@ -18,7 +23,7 @@ DialogAuthorizationInstructor::~DialogAuthorizationInstructor()
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void DialogAuthorizationInstructor::on_btnOK_clicked()
|
||||
void DialogAuthorizationInstructor::on_btnLogIn_clicked()
|
||||
{
|
||||
this->accept();
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ public:
|
||||
}
|
||||
|
||||
private slots:
|
||||
void on_btnOK_clicked();
|
||||
void on_btnLogIn_clicked();
|
||||
|
||||
private:
|
||||
Ui::DialogAuthorizationInstructor *ui;
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>admin</string>
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -78,7 +78,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>admin</string>
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -102,7 +102,7 @@
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<widget class="QPushButton" name="btnOK">
|
||||
<widget class="QPushButton" name="btnLogIn">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
@@ -110,7 +110,7 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Login in</string>
|
||||
<string>Log in</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -62,12 +62,13 @@ void ViewerInstructors::on_btnEditorInstructors_clicked()
|
||||
|
||||
EditorInstructors* editorInstructors = new EditorInstructors(connectorToServer, adminMode);
|
||||
connect(connectorToServer, &ConnectorToServer::signal_UpdateDB, editorInstructors, &EditorInstructors::slot_NeedUpdateUI);
|
||||
editorInstructors->activate();
|
||||
|
||||
dlgEditor = new QDialog(this);
|
||||
QHBoxLayout *layout = new QHBoxLayout(dlgEditor);
|
||||
layout->addWidget(editorInstructors);
|
||||
dlgEditor->setWindowTitle(tr("Editor of instructors"));
|
||||
dlgEditor->setMinimumSize(1600, 800);
|
||||
dlgEditor->setMinimumSize(1400, 700);
|
||||
dlgEditor->setWindowFlags(dlgEditor->windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
dlgEditor->exec();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user