mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Added Ctrl+Q shortcut.
This commit is contained in:
parent
5662120c51
commit
11883bab85
|
@ -50,6 +50,7 @@
|
|||
#include <QClipboard>
|
||||
#include <QThread>
|
||||
#include <QDialogButtonBox>
|
||||
#include <QShortcut>
|
||||
#include <QTimer>
|
||||
#include <QStyleFactory>
|
||||
#include <QTranslator>
|
||||
|
@ -197,6 +198,9 @@ void Widget::init()
|
|||
connect(timer, &QTimer::timeout, this, &Widget::onTryCreateTrayIcon);
|
||||
connect(offlineMsgTimer, &QTimer::timeout, this, &Widget::processOfflineMsgs);
|
||||
|
||||
// keyboard shortcuts
|
||||
new QShortcut(Qt::CTRL + Qt::Key_Q, this, SLOT(close()));
|
||||
|
||||
addFriendForm->show(*ui);
|
||||
|
||||
connect(settingsWidget, &SettingsWidget::groupchatPositionToggled, contactListWidget, &FriendListWidget::onGroupchatPositionChanged);
|
||||
|
|
Loading…
Reference in New Issue
Block a user