From f0da41c937b9381e67a57b8103bbf2d4aca7bb39 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Fri, 20 Dec 2013 11:33:22 -0200 Subject: Added Keyboard Navigation for the Star Widget Keys up and down to increase / decrease stars and also fixed focus policy for it. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/starwidget.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qt-ui/starwidget.h') diff --git a/qt-ui/starwidget.h b/qt-ui/starwidget.h index 9620bc62e..6bbaafc85 100644 --- a/qt-ui/starwidget.h +++ b/qt-ui/starwidget.h @@ -27,7 +27,9 @@ public slots: protected: /*reimp*/ void mouseReleaseEvent(QMouseEvent* ); /*reimp*/ void paintEvent(QPaintEvent* ); - + /*reimp*/ void focusInEvent(QFocusEvent*); + /*reimp*/ void focusOutEvent(QFocusEvent*); + /*reimp*/ void keyPressEvent(QKeyEvent*); private: int current; bool readOnly; -- cgit v1.2.3-70-g09d2