summaryrefslogtreecommitdiffstats
path: root/qt-ui/starwidget.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-12-20 11:33:22 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-20 09:53:05 -0800
commitf0da41c937b9381e67a57b8103bbf2d4aca7bb39 (patch)
tree9485f8c77b2fc6d3fca50ab7b6542a3091bf4e7d /qt-ui/starwidget.h
parent3e3fff262e90dde3c0db5e13de057f10753089fd (diff)
downloadsubsurface-f0da41c937b9381e67a57b8103bbf2d4aca7bb39.tar.gz
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>
Diffstat (limited to 'qt-ui/starwidget.h')
-rw-r--r--qt-ui/starwidget.h4
1 files changed, 3 insertions, 1 deletions
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;