Merge lp:~mir-team/qtmir/port-to-event-2.0 into lp:qtmir
| Status: | Merged | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Approved by: | Daniel d'Andrada on 2015-02-06 | ||||||||
| Approved revision: | no longer in the source branch. | ||||||||
| Merged at revision: | 326 | ||||||||
| Proposed branch: | lp:~mir-team/qtmir/port-to-event-2.0 | ||||||||
| Merge into: | lp:qtmir | ||||||||
| Diff against target: |
1160 lines (+376/-374) 10 files modified
CMakeLists.txt (+2/-1) src/common/debughelpers.cpp (+8/-24) src/modules/Unity/Application/mirsurfaceitem.cpp (+169/-174) src/modules/Unity/Application/mirsurfaceitem.h (+9/-1) src/platforms/mirserver/qteventfeeder.cpp (+136/-114) src/platforms/mirserver/qteventfeeder.h (+5/-3) tests/mirserver/QtEventFeeder/mock_qtwindowsystem.h (+2/-1) tests/mirserver/QtEventFeeder/qteventfeeder_test.cpp (+3/-32) tests/modules/ApplicationManager/application_manager_test.cpp (+2/-0) tests/modules/MirSurfaceItem/mirsurfaceitem_test.cpp (+40/-24) |
||||||||
| To merge this branch: | bzr merge lp:~mir-team/qtmir/port-to-event-2.0 | ||||||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Gerry Boland | Approve on 2015-02-20 | ||
| Daniel d'Andrada (community) | 2015-01-30 | Approve on 2015-02-06 | |
| PS Jenkins bot | continuous-integration | Needs Fixing on 2015-02-06 | |
|
Review via email:
|
|||
Commit Message
Port to the new MirEvent API and add support for pointer events.
As when accessing events through the new API pointer events will not present as touch events and not adding the new support would have introduced a regression.
Description of the Change
Port qtmir to the new MirEvent API. Also adds support for pointer events (as when accessing events through the new API pointer events will not present as touch events and not adding the new support would have introduced a regression).
Some tests are not totally ported...they may remain unported until the new MirEvent definition is available....
| Daniel d'Andrada (dandrader) wrote : | # |
In debian/control:
"""
"""
The mir version we depend on should be higher now, right? As I cannot build this branch with the currently released mir version.
--------
Please update the copyright year (ie, add 2015) to all the modified header and cpp files
| Daniel d'Andrada (dandrader) wrote : | # |
> In debian/control:
>
> """
> libmirclient-dev (>= 0.6.0),
> libmircommon-dev,
> libmirserver-dev (>= 0.10.0),
> """
>
> The mir version we depend on should be higher now, right? As I cannot build
> this branch with the currently released mir version.
And likely adding a minimum version requirement here as well, in CMakeList.txt:
"""
pkg_check_
"""
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:319
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:321
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:323
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| Daniel d'Andrada (dandrader) wrote : | # |
In mirsurfaceitem.cpp:
"""
namespace {
// Would be better if QMouseEvent had nativeModifiers
MirInputEventMo
mir_modifiers_
{
MirInputEve
if (mods & Qt::ShiftModifier)
"""
Please follow Qt coding style (function name)
| Daniel d'Andrada (dandrader) wrote : | # |
In mirsurfaceitem.cpp
"""
}
<- HERE
mir::EventUPtr makeMirEvent(
{
auto modifiers = mir_modifiers_
auto ev = mir::events:
<- HERE
for (int i = 0; i < qtTouchPoints.
"""
Some trailing whitespace here and there
| Daniel d'Andrada (dandrader) wrote : | # |
"""
@@ -580,10 +552,10 @@ void MirSurfaceItem:
- if (fillInMirEvent
- touchEvent.
- m_surface-
- }
+ auto ev = makeMirEvent(
+ touchEvent.
+ m_surface-
+ <- HERE
"""
More trailing whitespace in mirsurfaceitem.cpp
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:324
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| Daniel d'Andrada (dandrader) wrote : | # |
In src/platforms/
"""
Q_LOGGING_
// from android-input AMOTION_
-// mir headers should define them
-const int QtEventFeeder:
-const int QtEventFeeder:
-const int QtEventFeeder:
-
// XKB Keysyms which do not map directly to Qt types (i.e. Unicode points)
static const uint32_t KeyTable[] = {
"""
Should also remove the "from android-inpu" comment line
| Daniel d'Andrada (dandrader) wrote : | # |
In src/platforms/
"""
Qt::KeyboardMod
"""
Please use Qt's coding style.
- 310. By Gerry Boland on 2015-02-06
-
Explicitly setting GL-mode breaks GTK app rendering. Removing the hack appears to just work Fixes: #1401968
Approved by: Michał Sawicz, Stephen M. Webb, PS Jenkins bot - 311. By Michał Sawicz on 2015-02-06
-
Add moot autopkgtest to run the standard unit tests
- 312. By Albert Astals Cid on 2015-02-06
-
Fix demo shell import name
Approved by: Gerry Boland - 313. By Daniel d'Andrada on 2015-02-06
-
Don't suspend&resume the main stage app when switching focus from side to main stage
Approved by: Gerry Boland, PS Jenkins bot - 314. By CI Train Bot Account on 2015-02-06
-
Releasing 0.4.4+15.
04.20150206- 0ubuntu1 - 315. By Alan Griffiths on 2015-02-09
-
Port to the msh::Shell API in Mir
Approved by: Alberto Aguirre, Gerry Boland - 316. By Daniel van Vugt on 2015-02-09
-
QtMir changes required to support the Mir branch of the same name. Landing soon. Fixes: #1395581
Approved by: Gerry Boland - 317. By Robert Carr <racarr@ocelot> on 2015-02-09
-
Bump build-dep to mir 0.11.
- 318. By CI Train Bot Account on 2015-02-09
-
Releasing 0.4.4+15.
04.20150209- 0ubuntu1
| Gerry Boland (gerboland) wrote : | # |
Something weird has happened to the history of this branch. These branches appear to have been reverted:
lp:~alan-griffiths/qtmir/delete-dead-code
lp:~vanvugt/qtmir/fix-buffers_ready_for_compositor
I can't see where the history got confused, perhaps someone better with bzr can figure it out? I made a branch to restore the reversions, but it doesn't deal well with file deletion & re-creation:
lp:~gerboland/qtmir/port-to-event-2.0-fixed
- 319. By Timo Jyrinki on 2015-02-16
-
No-change rebuild against Qt 5.4.0.
| Robert Carr (robertcarr) wrote : | # |
https:/
so I merged fix-buffers_
- 320. By Robert Carr on 2015-02-19
-
Port to MirEvent 2.0
| Robert Carr (robertcarr) wrote : | # |
Overwrote a rebased branch with extraneous changes removed.
- 321. By Daniel d'Andrada on 2015-02-20
-
Fix virtual keyboard bug
While the virtual keyboard was up we were unable to interact
with the application behind it - 322. By Daniel d'Andrada on 2015-02-20
-
Fix typo
| Robert Carr (robertcarr) wrote : | # |
It looks like the corresponding change from 0.11 is already there from another branch (probably fix-buffers-

FAILED: Continuous integration, rev:318 jenkins. qa.ubuntu. com/job/ qtmir-ci/ 203/ jenkins. qa.ubuntu. com/job/ qtmir-vivid- amd64-ci/ 54/console jenkins. qa.ubuntu. com/job/ qtmir-vivid- armhf-ci/ 54/console
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/qtmir- ci/203/ rebuild
http://