Merge lp:~dandrader/unity8/sizeHints into lp:unity8
| Status: | Superseded |
|---|---|
| Proposed branch: | lp:~dandrader/unity8/sizeHints |
| Merge into: | lp:unity8 |
| Diff against target: |
1043 lines (+651/-80) 15 files modified
CMakeLists.txt (+1/-1) debian/control (+3/-3) qml/Stages/ApplicationWindow.qml (+7/-0) qml/Stages/DecoratedWindow.qml (+7/-0) qml/Stages/DesktopStage.qml (+6/-0) qml/Stages/WindowResizeArea.qml (+95/-16) tests/mocks/Unity/Application/MirSurface.cpp (+48/-0) tests/mocks/Unity/Application/MirSurface.h (+21/-0) tests/mocks/Unity/Application/SurfaceManager.cpp (+56/-0) tests/mocks/Unity/Application/SurfaceManager.h (+40/-0) tests/qmltests/Stages/SizeHintField.qml (+33/-0) tests/qmltests/Stages/SurfaceManagerControls.qml (+33/-0) tests/qmltests/Stages/SurfaceManagerField.qml (+40/-0) tests/qmltests/Stages/tst_DesktopStage.qml (+36/-30) tests/qmltests/Stages/tst_WindowResizeArea.qml (+225/-30) |
| To merge this branch: | bzr merge lp:~dandrader/unity8/sizeHints |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| PS Jenkins bot | continuous-integration | Needs Fixing on 2015-12-14 | |
| Albert Astals Cid (community) | merges fine | Abstain on 2015-12-14 | |
| Lukáš Tinkl (community) | 2015-11-26 | Approve on 2015-12-03 | |
|
Review via email:
|
|||
This proposal has been superseded by a proposal from 2016-02-03.
Commit Message
Window Size Hints
Description of the Change
* Are there any related MPs required for this MP to build/function as expected? Please list.
https:/
https:/
* Did you perform an exploratory manual test run of your code change and any related functionality?
Yes.
Run "make tryWindowResize
For live testing, use the test application in lp:~dandrader/+junk/sizeHintsDemo
Build it with "qmake && make"
Run "./sizeHintsDemo --help" for command line options.
There are two things to test:
1 - size hints set at start up (use command line for that)
2 - size hints set/changed while after the window has been shown. Use GUI for that.
* 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?
Not applicable
* If you changed the UI, has there been a design review?
Not applicable
| Albert Astals Cid (aacid) wrote : | # |
Text conflict in qml/Stages/
Text conflict in tests/qmltests/
2 conflicts encountered.
| Daniel d'Andrada (dandrader) wrote : | # |
On 30/11/2015 06:30, Albert Astals Cid wrote:
> Text conflict in qml/Stages/
> Text conflict in tests/qmltests/
> 2 conflicts encountered.
Fixed.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:2075
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| Lukáš Tinkl (lukas-kde) wrote : | # |
+++ qml/Stages/
+ property int minimumWidth: root.target ? Math.max(
(and the others in the private "d" object)
Shouldn't they be readonly? After all they just calculate and return values
| Daniel d'Andrada (dandrader) wrote : | # |
On 01/12/2015 14:28, Lukáš Tinkl wrote:
> Review: Needs Information
>
> +++ qml/Stages/
>
> + property int minimumWidth: root.target ? Math.max(
>
> (and the others in the private "d" object)
>
> Shouldn't they be readonly? After all they just calculate and return values
Right, done.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:2076
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| Lukáš Tinkl (lukas-kde) wrote : | # |
In make tryShell, I can't type anything into the controls that should set the min/max width/height. The controls just don't accept any input
| Lukáš Tinkl (lukas-kde) wrote : | # |
Also, the description mentions "make tryWindowSizeHint" which doesn't exist, co can't test either :/
| Lukáš Tinkl (lukas-kde) wrote : | # |
Tested it with a real app (dialer) which has both minimum and maximum size set. Resizing works fine within those bounds but the window can still be maximized... which kind of defeats the purpose of restricting the window width/height. I guess this needs fixing too
| Lukáš Tinkl (lukas-kde) wrote : | # |
After some discussion, let's leave the window flags for later, when the window management situation settles a bit.
* Did you perform an exploratory manual test run of the code change and any related functionality?
Yes
* Did CI run pass? If not, please explain why.
No, unsatisfied unity-api version
* Did you make sure that the branch does not contain spurious tags?
Yes
| Albert Astals Cid (aacid) wrote : | # |
Note for later: This was already top-approved
Text conflict in tests/qmltests/
1 conflicts encountered.
- 2077. By Daniel d'Andrada on 2015-12-14
-
Merge trunk
[ Albert Astals Cid ]
* Allow dragging launcher items with the quicklist open (LP: #1250861)
* Create ratings on demand instead of all at the same time (LP:
#1519898, #1492214)
* LVWPH: Process correctly section changes (LP: #1519893)
* Make sure that unfavoriting a scope gives us the next one
* Move images only used in tests to tests folder
[ Andrea Cimitan ]
* Add shadows to ubuntu store icon
[ Daniel d'Andrada ]
* MirSurfaceItem got a new property: fillMode (LP: #1497083)
* Session can have multiple surfaces now
* plugins/Cursor: Do not force loading a specific cursor size (LP:
#1517878)
[ Lukáš Tinkl ]
* Indicators convergence: use the "phone" profile everywhere (LP:
#1520492)
[ Michael Terry ]
* Let qtmir know which apps are exempt from the lifecycle management.
This way, it can manage its own wakelocks better (and stop
preventing the system from deep sleeping).
[ Michael Zanetti ]
* Use proper z ordering instead of app index for occlusion detection
* add some debug prints to the uinput backend
* drop the ignoredMice hack again (LP: #1521580)
[ Michał Sawicz ]
* Let qtmir know which apps are exempt from the lifecycle management.
This way, it can manage its own wakelocks better (and stop
preventing the system from deep sleeping).
* Update .pot file in debian/clean when in train
* Rebuild against Qt 5.5.1. - 2078. By Daniel d'Andrada on 2015-12-14
-
Update unity-api version requirements
| Daniel d'Andrada (dandrader) wrote : | # |
> Note for later: This was already top-approved
>
> Text conflict in tests/qmltests/
> 1 conflicts encountered.
Fixed.
| Albert Astals Cid (aacid) wrote : | # |
Re-top approving since it merges fine now.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:2078
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
Unmerged revisions
- 2078. By Daniel d'Andrada on 2015-12-14
-
Update unity-api version requirements

FAILED: Continuous integration, rev:2056 jenkins. qa.ubuntu. com/job/ unity8- ci/6817/ jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- vivid-touch/ 5439/console jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- xenial- touch/232/ console jenkins. qa.ubuntu. com/job/ unity-phablet- qmluitests- vivid/1528/ console jenkins. qa.ubuntu. com/job/ unity8- qmluitest- xenial- amd64/230/ console jenkins. qa.ubuntu. com/job/ unity8- vivid-amd64- ci/1423/ console jenkins. qa.ubuntu. com/job/ unity8- vivid-i386- ci/1423/ console jenkins. qa.ubuntu. com/job/ unity8- xenial- amd64-ci/ 230/console jenkins. qa.ubuntu. com/job/ unity8- xenial- i386-ci/ 229/console jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 5453/console jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- xenial- armhf/231/ console
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/unity8- ci/6817/ rebuild
http://