mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
MainWindow: Add extra shortcut for Browse Data refresh button
See issue #388.
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
#include <QProgressDialog>
|
||||
#include <QTextEdit>
|
||||
#include <QClipboard>
|
||||
#include <QShortcut>
|
||||
|
||||
MainWindow::MainWindow(QWidget* parent)
|
||||
: QMainWindow(parent),
|
||||
@@ -93,6 +94,9 @@ void MainWindow::init()
|
||||
shortcuts.push_back(QKeySequence(tr("Ctrl+Return")));
|
||||
ui->actionExecuteSql->setShortcuts(shortcuts);
|
||||
|
||||
QShortcut* shortcutBrowseRefresh = new QShortcut(QKeySequence("Ctrl+R"), this);
|
||||
QObject::connect(shortcutBrowseRefresh, SIGNAL(activated()), ui->buttonRefresh, SLOT(click()));
|
||||
|
||||
// Create the actions for the recently opened dbs list
|
||||
for(int i = 0; i < MaxRecentFiles; ++i) {
|
||||
recentFileActs[i] = new QAction(this);
|
||||
|
||||
Reference in New Issue
Block a user