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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user