From 5798e081f52371b9fd91cf0348cc946ebcc28a4a Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Mon, 19 Mar 2012 16:47:11 +0100 Subject: Let additional mouse buttons trigger history navigation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks to Sebastian Dörner for the patch! REVIEW: 101335 BUG: 181823 FIXED-IN: 4.9 --- src/views/dolphinview.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/views/dolphinview.h') diff --git a/src/views/dolphinview.h b/src/views/dolphinview.h index 628ab2dc5..48d0646c4 100644 --- a/src/views/dolphinview.h +++ b/src/views/dolphinview.h @@ -511,6 +511,18 @@ signals: */ void writeStateChanged(bool isFolderWritable); + /** + * Is emitted if the URL should be changed to the previous URL of the + * history (e.g. because the "back"-mousebutton has been pressed). + */ + void goBackRequested(); + + /** + * Is emitted if the URL should be changed to the next URL of the + * history (e.g. because the "next"-mousebutton has been pressed). + */ + void goForwardRequested(); + protected: /** Changes the zoom level if Control is pressed during a wheel event. */ virtual void wheelEvent(QWheelEvent* event); @@ -535,6 +547,7 @@ private slots: void slotItemUnhovered(int index); void slotItemDropEvent(int index, QGraphicsSceneDragDropEvent* event); void slotModelChanged(KItemModelBase* current, KItemModelBase* previous); + void slotMouseButtonPressed(int itemIndex, Qt::MouseButtons buttons); /** * Emits the signal \a selectionChanged() with a small delay. This is -- cgit v1.3.1