Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
81a99c39
Commit
81a99c39
authored
Aug 09, 2022
by
Waqar Ahmed
Browse files
QuickDialog: removeEventFilters
BUG: 457670
parent
18dc91a1
Pipeline
#215248
passed with stage
in 48 minutes and 44 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/lib/quickdialog.cpp
View file @
81a99c39
...
...
@@ -49,6 +49,12 @@ QuickDialog::QuickDialog(QWidget *parent, QWidget *mainWindow)
setFocus
();
}
QuickDialog
::~
QuickDialog
()
{
m_treeView
.
removeEventFilter
(
this
);
m_lineEdit
.
removeEventFilter
(
this
);
}
bool
QuickDialog
::
eventFilter
(
QObject
*
obj
,
QEvent
*
event
)
{
// catch key presses + shortcut overrides to allow to have ESC as application wide shortcut, too, see bug 409856
...
...
apps/lib/quickdialog.h
View file @
81a99c39
...
...
@@ -25,6 +25,7 @@ class KATE_PRIVATE_EXPORT QuickDialog : public QMenu
Q_OBJECT
public:
QuickDialog
(
QWidget
*
parent
,
QWidget
*
mainWindow
);
~
QuickDialog
();
protected:
bool
eventFilter
(
QObject
*
obj
,
QEvent
*
event
)
override
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment