Add xref shortcut to Strings Widget (#858)

This commit is contained in:
fcasal 2018-11-26 18:54:39 +00:00 committed by xarkes
parent 26d985c9dc
commit 33d16dda3e

View File

@ -166,6 +166,11 @@ StringsWidget::StringsWidget(MainWindow *main, QAction *action) :
ui->stringsTreeView->setModel(proxyModel);
ui->stringsTreeView->sortByColumn(StringsModel::OffsetColumn, Qt::AscendingOrder);
auto xRefShortcut = new QShortcut(QKeySequence{Qt::CTRL + Qt::Key_X}, this);
xRefShortcut->setContext(Qt::WidgetWithChildrenShortcut);
ui->actionX_refs->setShortcut(Qt::CTRL + Qt::Key_X);
connect(xRefShortcut, SIGNAL(activated()), this, SLOT(on_actionX_refs_triggered()));
connect(ui->quickFilterView, SIGNAL(filterTextChanged(const QString &)), proxyModel,
SLOT(setFilterWildcard(const QString &)));