mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
feat: add login by enter and return button
This commit is contained in:
2
StaticData/authData.xml
Normal file
2
StaticData/authData.xml
Normal file
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<AuthData Login="FDS" Password="FSD" InstructorName="" ClientName="" AccessType=""/>
|
||||
2
StaticData/temp.xml
Normal file
2
StaticData/temp.xml
Normal file
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ClientAutorization Login="FDS" Password="FSD"/>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -394,6 +394,17 @@ void MainWindow::checkUpdate()
|
||||
ui->inlineTextDebug->setText(tr("Проверка обновлений..."));
|
||||
}
|
||||
|
||||
void MainWindow::keyPressEvent(QKeyEvent *event)
|
||||
{
|
||||
|
||||
if (event->key() == Qt::Key_Enter || event->key() == Qt::Key_Return)
|
||||
{
|
||||
if (ui->loginInputField->text().length() <= 0 || ui->passwordInputField->text() <= 0) return;
|
||||
|
||||
on_loginButton_clicked();
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::painting()
|
||||
{
|
||||
// QPixmap background(":/resource/SSJ-100.jpg");
|
||||
|
||||
@@ -104,5 +104,8 @@ private:
|
||||
void loadStaticData();
|
||||
void bindClient();
|
||||
void createObjects();
|
||||
|
||||
protected:
|
||||
virtual void keyPressEvent(QKeyEvent *event);
|
||||
};
|
||||
#endif // MAINWINDOW_H
|
||||
|
||||
Reference in New Issue
Block a user