mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Add quit (CTRL+Q) shortcut to login screen
This commit is contained in:
parent
ac0beffd0c
commit
0923e2b733
|
@ -10,10 +10,12 @@
|
|||
|
||||
LoginScreen::LoginScreen(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
ui(new Ui::LoginScreen)
|
||||
ui(new Ui::LoginScreen),
|
||||
quitShortcut{QKeySequence(Qt::CTRL + Qt::Key_Q), this}
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
connect(&quitShortcut, &QShortcut::activated, this, &LoginScreen::close);
|
||||
connect(ui->newProfilePgbtn, &QPushButton::clicked, this, &LoginScreen::onNewProfilePageClicked);
|
||||
connect(ui->loginPgbtn, &QPushButton::clicked, this, &LoginScreen::onLoginPageClicked);
|
||||
connect(ui->createAccountButton, &QPushButton::clicked, this, &LoginScreen::onCreateNewProfile);
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#define LOGINSCREEN_H
|
||||
|
||||
#include <QWidget>
|
||||
#include <QShortcut>
|
||||
|
||||
namespace Ui {
|
||||
class LoginScreen;
|
||||
|
@ -29,6 +30,7 @@ private slots:
|
|||
|
||||
private:
|
||||
Ui::LoginScreen *ui;
|
||||
QShortcut quitShortcut;
|
||||
};
|
||||
|
||||
#endif // LOGINSCREEN_H
|
||||
|
|
Loading…
Reference in New Issue
Block a user