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/kitemviews/kitemlistcontroller.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/kitemviews/kitemlistcontroller.h') diff --git a/src/kitemviews/kitemlistcontroller.h b/src/kitemviews/kitemlistcontroller.h index 9ac4c76e6..b44fcca3c 100644 --- a/src/kitemviews/kitemlistcontroller.h +++ b/src/kitemviews/kitemlistcontroller.h @@ -177,14 +177,18 @@ signals: /** * Is emitted if a mouse-button has been pressed above an item. + * If the index is smaller than 0, the mouse-button has been pressed + * above the viewport. */ - void itemPressed(int index, Qt::MouseButton button); + void mouseButtonPressed(int itemIndex, Qt::MouseButtons buttons); /** * Is emitted if a mouse-button has been released above an item. - * It is assured that the signal itemPressed() has been emitted before. + * It is assured that the signal mouseButtonPressed() has been emitted before. + * If the index is smaller than 0, the mouse-button has been pressed + * above the viewport. */ - void itemReleased(int index, Qt::MouseButton button); + void mouseButtonReleased(int itemIndex, Qt::MouseButtons buttons); void itemExpansionToggleClicked(int index); -- cgit v1.3.1