diff options
| author | Peter Penz <[email protected]> | 2012-03-19 16:47:11 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-03-19 16:53:53 +0100 |
| commit | 5798e081f52371b9fd91cf0348cc946ebcc28a4a (patch) | |
| tree | 2e393e81c00b14fbfa6bb31d28ed9b8feb96486f /src/kitemviews/kitemlistcontroller.h | |
| parent | 476128f01aba48f6519ead627d39175443f59758 (diff) | |
Let additional mouse buttons trigger history navigation
Thanks to Sebastian Dörner for the patch!
REVIEW: 101335
BUG: 181823
FIXED-IN: 4.9
Diffstat (limited to 'src/kitemviews/kitemlistcontroller.h')
| -rw-r--r-- | src/kitemviews/kitemlistcontroller.h | 10 |
1 files changed, 7 insertions, 3 deletions
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); |
