From 6e6b4ce75cf3f01bad2fad34baa9ecf15a5516af Mon Sep 17 00:00:00 2001 From: Tirtha Chatterjee Date: Mon, 29 Aug 2011 21:13:36 +0530 Subject: Added the functionality to activate items by pressing 'enter' or 'return' key on them, equivalent to a mouse click. REVIEW: 102450 --- src/kitemviews/kitemlistcontroller.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/kitemviews/kitemlistcontroller.h') diff --git a/src/kitemviews/kitemlistcontroller.h b/src/kitemviews/kitemlistcontroller.h index 04d49854e..2e33948aa 100644 --- a/src/kitemviews/kitemlistcontroller.h +++ b/src/kitemviews/kitemlistcontroller.h @@ -105,13 +105,14 @@ public: virtual bool processEvent(QEvent* event, const QTransform& transform); signals: - void itemClicked(int index, Qt::MouseButton button); + void itemActivated(int index); + void itemMiddleClicked(int index); + void contextMenuRequested(int index, const QPointF& pos); /** * Is emitted if the item with the index \p index gets hovered. */ void itemHovered(int index); - /** * Is emitted if the item with the index \p index gets unhovered. * It is assured that the signal itemHovered() for this index -- cgit v1.3