This opens the resulting page in a new tab.
BUG: 358649
elvisangelaccio | |
dfaure |
Dolphin |
This opens the resulting page in a new tab.
BUG: 358649
Middle clicked back, forward, up, home, and they all opened in a new tab.
Also fixed an issue in the previous goHome(Qt::MouseButton) function
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
I didn't figure out how to tell when the kxmlgui's toolBar is setup, so I have a timer hack in there, please tell me how to fix it :D
The toolbar is created by the setupGUI() call in the mainwindow constructor, so you need to install the event filter after that.
src/dolphinmainwindow.cpp | ||
---|---|---|
1109 | We could just compare it with backAction (using [=] in the lambda). Same below. |
Nice addition :)
src/middleclickactioneventfilter.cpp | ||
---|---|---|
41 | This is dangerous if watched isn't a QToolbar or a subclass of it. |