Skip to content
GitLab
Menu
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
c53be219
Commit
c53be219
authored
Sep 15, 2020
by
Christoph Cullmann
🐮
Browse files
close tabs again with middle mouse button click
BUG: 426042
parent
830ce99b
Changes
1
Hide whitespace changes
Inline
Side-by-side
kate/katetabbar.cpp
View file @
c53be219
...
...
@@ -146,6 +146,14 @@ void KateTabBar::mousePressEvent(QMouseEvent *event)
emit
activateViewSpaceRequested
();
}
QTabBar
::
mousePressEvent
(
event
);
// handle close for middle mouse button
if
(
event
->
button
()
==
Qt
::
MidButton
)
{
int
id
=
tabAt
(
event
->
pos
());
if
(
id
>=
0
)
{
emit
tabCloseRequested
(
id
);
}
}
}
void
KateTabBar
::
contextMenuEvent
(
QContextMenuEvent
*
ev
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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