Qt<5.6 compatibility

This commit is contained in:
Florian Märkl 2017-12-21 12:08:49 +01:00
parent fa6902d41c
commit 1462f29251
2 changed files with 2 additions and 2 deletions

View File

@ -348,7 +348,7 @@ FunctionsWidget::FunctionsWidget(MainWindow *main, QWidget *parent) :
search_shortcut->setContext(Qt::WidgetWithChildrenShortcut);
// Esc to clear the filter entry
QShortcut *clear_shortcut = new QShortcut(QKeySequence::Cancel, this);
QShortcut *clear_shortcut = new QShortcut(QKeySequence(Qt::Key_Escape), this);
connect(clear_shortcut, &QShortcut::activated, ui->quickFilterView, &QuickFilterView::clearFilter);
clear_shortcut->setContext(Qt::WidgetWithChildrenShortcut);

View File

@ -132,7 +132,7 @@ StringsWidget::StringsWidget(QWidget *parent) :
search_shortcut->setContext(Qt::WidgetWithChildrenShortcut);
// Esc to clear the filter entry
QShortcut *clear_shortcut = new QShortcut(QKeySequence::Cancel, this);
QShortcut *clear_shortcut = new QShortcut(QKeySequence(Qt::Key_Escape), this);
connect(clear_shortcut, &QShortcut::activated, ui->quickFilterView, &QuickFilterView::clearFilter);
clear_shortcut->setContext(Qt::WidgetWithChildrenShortcut);