Merge lp:~lukas-kde/unity8/liveCaption into lp:unity8

Proposed by Lukáš Tinkl
Status: Superseded
Proposed branch: lp:~lukas-kde/unity8/liveCaption
Merge into: lp:unity8
Prerequisite: lp:~dandrader/unity8/mousePointer
Diff against target: 50 lines (+5/-2)
4 files modified
debian/control (+1/-1)
qml/Stages/ApplicationWindow.qml (+2/-0)
qml/Stages/DecoratedWindow.qml (+1/-1)
qml/Stages/SurfaceContainer.qml (+1/-0)
To merge this branch: bzr merge lp:~lukas-kde/unity8/liveCaption
Reviewer Review Type Date Requested Status
Albert Astals Cid (community) Needs Fixing
PS Jenkins bot (community) continuous-integration Needs Fixing
Daniel d'Andrada (community) Approve
Review via email: mp+272920@code.launchpad.net

This proposal supersedes a proposal from 2015-09-29.

This proposal has been superseded by a proposal from 2015-10-08.

Commit message

React to window title (aka surface name) changes

Description of the change

React to window caption (surface name) changes

Cf. https://bugs.launchpad.net/ubuntu/+source/unity-api/+bug/1497092

* Are there any related MPs required for this MP to build/function as expected? Please list.

Yes: unity-api: https://code.launchpad.net/~lukas-kde/unity-api/liveCaption/+merge/272769
Functionality also depends on qtmir: https://code.launchpad.net/~lukas-kde/qtmir/liveCaption/+merge/272757 and qtubuntu: https://code.launchpad.net/~lukas-kde/qtubuntu/liveCaption/+merge/272756

* Did you perform an exploratory manual test run of your code change and any related functionality?

Yes

* Did you make sure that your branch does not contain spurious tags?

Yes

* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?

Yes

* If you changed the UI, has there been a design review?

N/A

To post a comment you must log in.
Revision history for this message
Daniel d'Andrada (dandrader) wrote : Posted in a previous version of this proposal

Please rebase it on top of mousePointer, as you did for the unity-api one.

Revision history for this message
Daniel d'Andrada (dandrader) wrote : Posted in a previous version of this proposal

Unrelated changes in po/sr.po.

There's debug output in qml/Stages/SurfaceContainer.qml

In qml/Stages/ApplicationWindow.qml, please use sessionContainer.surfaceContainer.name instead of going all the way down to sessionContainer.surfaceContainer.surface.name

review: Needs Fixing
Revision history for this message
Daniel d'Andrada (dandrader) wrote : Posted in a previous version of this proposal

In qml/Stages/SurfaceContainer.qml:

"""
property string name: surface && surface.name !== "" ? surface.name : ""
"""

Has some redundancy. It could be written as:
property string name: surface ? surface.name : ""

review: Needs Fixing
Revision history for this message
Lukáš Tinkl (lukas-kde) wrote : Posted in a previous version of this proposal

> Unrelated changes in po/sr.po.

Fixed

> There's debug output in qml/Stages/SurfaceContainer.qml

Fixed

> In qml/Stages/ApplicationWindow.qml, please use
> sessionContainer.surfaceContainer.name instead of going all the way down to
> sessionContainer.surfaceContainer.surface.name

Fixed

Revision history for this message
Lukáš Tinkl (lukas-kde) wrote : Posted in a previous version of this proposal

> In qml/Stages/SurfaceContainer.qml:
>
> """
> property string name: surface && surface.name !== "" ? surface.name : ""
> """
>
> Has some redundancy. It could be written as:
> property string name: surface ? surface.name : ""

Fixed

Revision history for this message
Lukáš Tinkl (lukas-kde) wrote : Posted in a previous version of this proposal

> Please rebase it on top of mousePointer, as you did for the unity-api one.

Done

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
Daniel d'Andrada (dandrader) wrote : Posted in a previous version of this proposal

In qml/Stages/SurfaceContainer.qml:

"""
+ Connections {
+ target: root.surface
+ onNameChanged: {
+ if (name !== "") {
+ root.name = name;
+ }
+ }
+ }
"""

I don't think we need this code. Let name be empty if it was set like that.

review: Needs Fixing
Revision history for this message
Daniel d'Andrada (dandrader) wrote : Posted in a previous version of this proposal

You have to resubmit your proposal to add lp:~dandrader/unity8/mousePointer as a prerequisite. Otherwise launchpad will think your MP includes mousePointer changes as well.

lp:~lukas-kde/unity8/liveCaption updated
1949. By Lukáš Tinkl

allow setting the surface name to empty string

1950. By Lukáš Tinkl

remove unneeded connections

Revision history for this message
Daniel d'Andrada (dandrader) wrote :

Thanks

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Albert Astals Cid (aacid) wrote :

Was top approved.

Text conflict in CMakeLists.txt
1 conflicts encountered.

review: Needs Fixing
lp:~lukas-kde/unity8/liveCaption updated
1951. By Lukáš Tinkl

merge trunk and fix conflict

1952. By Lukáš Tinkl

merge prereq

1953. By Lukáš Tinkl

merge lp:~unity-team/unity8/mousePointer

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2015-09-30 14:25:25 +0000
3+++ debian/control 2015-09-30 14:25:25 +0000
4@@ -173,7 +173,7 @@
5 Depends: ${misc:Depends},
6 ${shlibs:Depends},
7 Provides: unity-application-impl,
8- unity-application-impl-8,
9+ unity-application-impl-9,
10 Replaces: unity8-autopilot (<< 8.02+15.04.20150422-0ubuntu1)
11 Description: Fake environment for running Unity 8 shell
12 Provides fake implementations of some QML modules used by Unity 8 shell
13
14=== modified file 'qml/Stages/ApplicationWindow.qml'
15--- qml/Stages/ApplicationWindow.qml 2015-09-17 12:25:29 +0000
16+++ qml/Stages/ApplicationWindow.qml 2015-09-30 14:25:25 +0000
17@@ -27,6 +27,8 @@
18 readonly property bool fullscreen: application ? application.fullscreen : false
19 property alias interactive: sessionContainer.interactive
20 property bool orientationChangesEnabled: d.supportsSurfaceResize ? d.surfaceOldEnoughToBeResized : true
21+ readonly property string title: sessionContainer.surface && sessionContainer.surface.name !== "" ?
22+ sessionContainer.surface.name : d.name
23
24 // to be set from outside
25 property QtObject application
26
27=== modified file 'qml/Stages/DecoratedWindow.qml'
28--- qml/Stages/DecoratedWindow.qml 2015-09-30 14:25:25 +0000
29+++ qml/Stages/DecoratedWindow.qml 2015-09-30 14:25:25 +0000
30@@ -66,7 +66,7 @@
31 objectName: application ? "appWindowDecoration_" + application.appId : "appWindowDecoration_null"
32 anchors { left: parent.left; top: parent.top; right: parent.right }
33 height: units.gu(3)
34- title: model.name
35+ title: window.title !== "" ? window.title : model.name
36 onClose: root.close();
37 onMaximize: root.maximize();
38 onMinimize: root.minimize();
39
40=== modified file 'qml/Stages/SurfaceContainer.qml'
41--- qml/Stages/SurfaceContainer.qml 2015-09-09 13:44:12 +0000
42+++ qml/Stages/SurfaceContainer.qml 2015-09-30 14:25:25 +0000
43@@ -28,6 +28,7 @@
44 property bool hadSurface: false
45 property bool interactive
46 property int surfaceOrientationAngle: 0
47+ property string name: surface ? surface.name : ""
48 property bool resizeSurface: true
49
50 onSurfaceChanged: {

Subscribers

People subscribed via source and target branches