Merge lp:~dandrader/unity-api/mousePointer into lp:unity-api
| Status: | Merged |
|---|---|
| Approved by: | Lukáš Tinkl on 2015-10-13 |
| Approved revision: | 190 |
| Merged at revision: | 189 |
| Proposed branch: | lp:~dandrader/unity-api/mousePointer |
| Merge into: | lp:unity-api |
| Diff against target: |
222 lines (+166/-4) 5 files modified
debian/changelog (+8/-0) include/unity/shell/application/CMakeLists.txt (+1/-1) include/unity/shell/application/Mir.h (+20/-3) include/unity/shell/application/MirMousePointerInterface.h (+99/-0) include/unity/shell/application/MirPlatformCursor.h (+38/-0) |
| To merge this branch: | bzr merge lp:~dandrader/unity-api/mousePointer |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| PS Jenkins bot | continuous-integration | 2015-09-18 | Approve on 2015-10-13 |
| Lukáš Tinkl (community) | Approve on 2015-10-13 | ||
| Gerry Boland | 2015-09-18 | Approve on 2015-09-18 | |
|
Review via email:
|
|||
This proposal supersedes a proposal from 2015-09-01.
Commit Message
unity/shell/
Add Mir.cursorName, MirMousePointer
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:187
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Gerry Boland (gerboland) wrote : | # |
+ Q_PROPERTY(qreal hotspotX READ hotspotX NOTIFY hotspotXChanged)
+ Q_PROPERTY(qreal hotspotY READ hotspotY NOTIFY hotspotYChanged)
QPoint?
+ * @brief Handler for Mir mouse events
+ virtual void handleMouseEven
+ Qt::KeyboardMod
These are relative mouse events, right? Please make that clear in the description and method argument.
Looking good otherwise!
| Daniel d'Andrada (dandrader) wrote : | # |
On 09/09/15 07:54, Gerry Boland wrote:
> Review: Needs Information
>
> + Q_PROPERTY(qreal hotspotX READ hotspotX NOTIFY hotspotXChanged)
> + Q_PROPERTY(qreal hotspotY READ hotspotY NOTIFY hotspotYChanged)
> QPoint?
Please don't! This is the most convenient way for using it in QML.
>
> + * @brief Handler for Mir mouse events
> + virtual void handleMouseEven
> + Qt::KeyboardMod
> These are relative mouse events, right? Please make that clear in the description and method argument.
>
Well, the argument is called "movement", not "position". Movement is
relative by definition.
But sure, I can add documentation on this argument.
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:188
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Gerry Boland (gerboland) wrote : | # |
> On 09/09/15 07:54, Gerry Boland wrote:
> > Review: Needs Information
> >
> > + Q_PROPERTY(qreal hotspotX READ hotspotX NOTIFY hotspotXChanged)
> > + Q_PROPERTY(qreal hotspotY READ hotspotY NOTIFY hotspotYChanged)
> > QPoint?
>
> Please don't! This is the most convenient way for using it in QML.
That's
x: hotspotX
y: hotspotY
versus
x: hotspot.x
y: hotspot.y
I know which I prefer ;)
| Daniel d'Andrada (dandrader) wrote : | # |
On 16/09/15 07:40, Gerry Boland wrote:
>> On 09/09/15 07:54, Gerry Boland wrote:
>>> Review: Needs Information
>>>
>>> + Q_PROPERTY(qreal hotspotX READ hotspotX NOTIFY hotspotXChanged)
>>> + Q_PROPERTY(qreal hotspotY READ hotspotY NOTIFY hotspotYChanged)
>>> QPoint?
>> Please don't! This is the most convenient way for using it in QML.
> That's
> x: hotspotX
> y: hotspotY
> versus
> x: hotspot.x
> y: hotspot.y
> I know which I prefer ;)
Does QQuickItem have item.pos.x and item.pos.y? Or item.size.width and
item.size.height?
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:188
http://
Executed test runs:
FAILURE: http://
SUCCESS: http://
deb: http://
FAILURE: http://
FAILURE: http://
SUCCESS: http://
deb: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| Daniel d'Andrada (dandrader) wrote : | # |
> debian/changelog has a conflict
Merged fine locally but launchpad web diff still didn't like it.
Did a fresh rebase and launchpad is now happy.
| Lukáš Tinkl (lukas-kde) wrote : | # |
+ virtual void handleMouseEven
Needs to pass Qt::MouseButton_s_ around, see https:/
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:189
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 190. By Daniel d'Andrada on 2015-10-13
-
s/Qt::MouseButt
on/Qt:: MouseButtons
| Daniel d'Andrada (dandrader) wrote : | # |
> + virtual void handleMouseEven
> Qt::MouseButton buttons, ...
>
> Needs to pass Qt::MouseButton_s_ around, see https:/
> ader/qtmir/
Fixed.
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:190
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://

PASSED: Continuous integration, rev:186 jenkins. qa.ubuntu. com/job/ unity-api- trunk-15. 04-ci/3/ jenkins. qa.ubuntu. com/job/ unity-api- trunk-15. 04-vivid- amd64-ci/ 3 jenkins. qa.ubuntu. com/job/ unity-api- trunk-15. 04-vivid- armhf-ci/ 3 jenkins. qa.ubuntu. com/job/ unity-api- trunk-15. 04-vivid- armhf-ci/ 3/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ unity-api- trunk-15. 04-vivid- i386-ci/ 3
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/unity- api-trunk- 15.04-ci/ 3/rebuild
http://