KBreakout: Make arrow keys control bar again

Review Request #127622 - Created April 10, 2016 and submitted - Latest diff uploaded

Information
Julian Helfferich
kbreakout
master, Applications/16.04
348090
Reviewers
Kdegames

Since the port to QtQuick/QML arrow keys no longer move the bar as expected (bug 348090). I have fixed this problem by adding a keyEventHandler to main.qml. The corresponding functions in CanvasWidget are no longer needed.

While this fix resolves the bug, I found that to fire the ball (Space key) a QAction is used. Is this the preferred way or is it not necessary in this case?

Played the game: Bar moves on arrow keys.

Loading...