feat: add ctrl + r shortcut to reload all connections
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include "filterutility.h"
|
||||
|
||||
#include <QClipboard>
|
||||
#include <QShortcut>
|
||||
/*
|
||||
Some notes on things I'd like to put into the program but haven't put on github (yet)
|
||||
|
||||
@@ -231,6 +232,10 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
connectionWindow = new ConnectionWindow();
|
||||
connect(this, SIGNAL(suspendCapturing(bool)), connectionWindow, SLOT(setSuspendAll(bool)));
|
||||
|
||||
//Ctrl+R reloads (resets) all connections, as if resetting each device in the connection window.
|
||||
QShortcut *reloadConnShortcut = new QShortcut(QKeySequence(tr("Ctrl+R")), this);
|
||||
connect(reloadConnShortcut, &QShortcut::activated, connectionWindow, &ConnectionWindow::resetAllConnections);
|
||||
|
||||
//these either are unfinished/not working or are not for general use. But,they exist
|
||||
//so if you want to enable them and play with them then go for it.
|
||||
//ui->actionFirmware_Update->setVisible(false);
|
||||
|
||||
Reference in New Issue
Block a user