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 <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2013-12-20 11:33:22 -02:00 committed by Dirk Hohndel
parent 3e3fff262e
commit f0da41c937
3 changed files with 60 additions and 13 deletions

View file

@ -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;