diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2024-05-25 15:05:26 +0300 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2024-05-25 15:51:18 +0300 |
commit | a92de61fd98194c2769b3e440d67af947ffa368d (patch) | |
tree | 4e49712ca50d6dd3056f702ac791cfc10feea170 /konqueror/konq_mainwindow.cpp | |
parent | 07202787d96d30dfd88ffeeea6b45d72722cc60f (diff) | |
download | tdebase-a92de61fd98194c2769b3e440d67af947ffa368d.tar.gz tdebase-a92de61fd98194c2769b3e440d67af947ffa368d.zip |
Konqueror: Add support for back/forward actions using history mouse buttons
This closes #421.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
(cherry picked from commit 9ed610f50d8f7e8278b12b442aa23956293837ab)
Diffstat (limited to 'konqueror/konq_mainwindow.cpp')
-rw-r--r-- | konqueror/konq_mainwindow.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/konqueror/konq_mainwindow.cpp b/konqueror/konq_mainwindow.cpp index 01cbf5a52..1905f5771 100644 --- a/konqueror/konq_mainwindow.cpp +++ b/konqueror/konq_mainwindow.cpp @@ -3580,6 +3580,22 @@ bool KonqMainWindow::eventFilter(TQObject*obj,TQEvent *ev) } } } + + else if (ev->type() == TQEvent::MouseButtonRelease) + { + TQMouseEvent *mouseEv = static_cast<TQMouseEvent*>(ev); + switch (mouseEv->button()) + { + case TQMouseEvent::HistoryBackButton: + slotBack(); + return true; + + case TQMouseEvent::HistoryForwardButton: + slotForward(); + return true; + } + } + return KParts::MainWindow::eventFilter( obj, ev ); } |