[Kde-games-devel] Review Request 127622: KBreakout: Make arrow keys control bar again

Julian Helfferich julian.helfferich at googlemail.com
Fri Apr 22 12:54:39 UTC 2016


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127622/
-----------------------------------------------------------

(Updated April 22, 2016, 12:54 p.m.)


Status
------

This change has been marked as submitted.


Review request for KDE Games.


Changes
-------

Submitted with commit d7d0968b0594d6971127c1ec836b0f77fac08274 by Julian Helfferich to branch Applications/16.04.


Bugs: 348090
    http://bugs.kde.org/show_bug.cgi?id=348090


Repository: kbreakout


Description
-------

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?


Diffs
-----

  src/canvaswidget.h e277663 
  src/canvaswidget.cpp 5187391 
  src/qml/main.qml 6331ab1 

Diff: https://git.reviewboard.kde.org/r/127622/diff/


Testing
-------

Played the game: Bar moves on arrow keys.


Thanks,

Julian Helfferich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-games-devel/attachments/20160422/4c130138/attachment.html>


More information about the kde-games-devel mailing list