[KUrlNavigator] Emit tabRequested when path in path selector menu is middle-clicked
ClosedPublic

Authored by broulik on Aug 25 2017, 9:11 AM.

Details

Summary

The breadcrumbs and menu items in the breadcrumb separators already did that but the path selector, which looks like a breadcrumb separator, did not.

Test Plan

I think this should be the last missing middle click tab handling in the address bar :)

Diff Detail

Repository
R241 KIO
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik created this revision.Aug 25 2017, 9:11 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptAug 25 2017, 9:11 AM
Restricted Application added a subscriber: Frameworks. · View Herald Transcript
dfaure edited edge metadata.Sep 3 2017, 9:06 AM

Maybe it would be safer/simpler to use a different QObject for watching the menus.

src/filewidgets/kurlnavigator.cpp
371

Warning, that eventFilter method didn't expect to get events for the menu... see below.

1202

This code will now trigger when the menu loses focus. Won't that have unintended side effects?

1207

This code will now trigger when the menu loses focus. Won't that have unintended side effects?

dfaure requested changes to this revision.Sep 3 2017, 9:06 AM
This revision now requires changes to proceed.Sep 3 2017, 9:06 AM
broulik planned changes to this revision.Feb 15 2018, 12:49 PM
broulik updated this revision to Diff 33076.Apr 25 2018, 2:47 PM
  • Split event filter into its own class
dfaure accepted this revision.Apr 28 2018, 10:08 AM

(even better would be to unittest this).

This revision is now accepted and ready to land.Apr 28 2018, 10:08 AM
This revision was automatically updated to reflect the committed changes.
Restricted Application removed a subscriber: Frameworks. · View Herald TranscriptMay 16 2018, 11:52 AM