Merge lp:~unity-team/unity8/stagedFullscreen.form-factor into lp:unity8
| Status: | Work in progress |
|---|---|
| Proposed branch: | lp:~unity-team/unity8/stagedFullscreen.form-factor |
| Merge into: | lp:unity8 |
| Diff against target: |
348 lines (+158/-10) 9 files modified
qml/Stages/AbstractStage.qml (+15/-0) qml/Stages/DesktopStage.qml (+41/-9) qml/Stages/PhoneStage.qml (+2/-0) qml/Stages/TabletStage.qml (+2/-0) tests/mocks/Unity/Screens/ScreenWindow.qml (+24/-0) tests/mocks/Unity/Screens/Screens.qmltypes (+57/-0) tests/mocks/Unity/Screens/plugin.cpp (+2/-1) tests/mocks/Unity/Screens/qmldir (+3/-0) tests/mocks/Unity/Screens/screens.h (+12/-0) |
| To merge this branch: | bzr merge lp:~unity-team/unity8/stagedFullscreen.form-factor |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Unity8 CI Bot | continuous-integration | Needs Fixing on 2016-03-24 | |
| Albert Astals Cid (community) | Needs Fixing on 2016-02-22 | ||
| PS Jenkins bot | continuous-integration | Needs Fixing on 2016-02-10 | |
| Michał Sawicz | code | Approve on 2016-02-05 | |
| Michael Zanetti (community) | 2016-02-04 | Needs Information on 2016-02-04 | |
|
Review via email:
|
|||
Commit Message
Set form factor on all screens
Description of the Change
* Are there any related MPs required for this MP to build/function as expected? Please list.
lp:~nick-dedekind/qtmir/stagedFullscreen.form-factor
* Did you perform an exploratory manual test run of your code change and any related functionality?
Will do in silo
* Did you make sure that your branch does not contain spurious tags?
Y
* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A
* If you changed the UI, has there been a design review?
Will be in silo
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:2174
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Michael Zanetti (mzanetti) wrote : | # |
I don't think having the repeater in the AbstractStage is the right thing to do. For example, in the case of an external display, we'd have 2 screens, however, the Stage would run only on one of them. Still it sets both screens to FormFactorMonitor.
I guess the current circumstances still make it work for all the cases we support atm, but it really doesn't look like this is gonna be future proof like this.
Do I understand something wrong?
| Nick Dedekind (nick-dedekind) wrote : | # |
> I don't think having the repeater in the AbstractStage is the right thing to
> do. For example, in the case of an external display, we'd have 2 screens,
> however, the Stage would run only on one of them. Still it sets both screens
> to FormFactorMonitor.
>
> I guess the current circumstances still make it work for all the cases we
> support atm, but it really doesn't look like this is gonna be future proof
> like this.
>
> Do I understand something wrong?
This is a temporary solution. we have an idea for the final thing; but it's a wip at the moment.
| Michael Zanetti (mzanetti) wrote : | # |
So, given this is quite temporary, and we don't have a chance to come up with the proper things at this point, I'd suggest to move the repeater into Shell.qml and determine the form factor from Shell.useScenario. That way we only have to add temporary code (and please add a FIXME comment) to 1 place instead of distributing it over 4 files.
If the screens api allows us to do so, try setting the form factor only to the screen in use, instead of all screens. If not, don't bother, this will do for now.
- 2175. By Nick Dedekind on 2016-02-04
-
added FIXME
| Unity8 CI Bot (unity8-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:2175
https:/
Executed test runs:
Click here to trigger a rebuild:
https:/
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:2175
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Nick Dedekind (nick-dedekind) wrote : | # |
> So, given this is quite temporary, and we don't have a chance to come up with
> the proper things at this point, I'd suggest to move the repeater into
> Shell.qml and determine the form factor from Shell.useScenario. That way we
> only have to add temporary code (and please add a FIXME comment) to 1 place
> instead of distributing it over 4 files.
>
> If the screens api allows us to do so, try setting the form factor only to the
> screen in use, instead of all screens. If not, don't bother, this will do for
> now.
I've added a fixme. I still believe it's up to the stage to decide which form factor it uses.
| Michał Sawicz (saviq) wrote : | # |
* Did you perform an exploratory manual test run of the code change and any related functionality?
Y
* Did CI run pass? If not, please explain why.
One test fixed elsewhere
* Did you make sure that the branch does not contain spurious tags?
Y
| Unity8 CI Bot (unity8-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:2175
https:/
Executed test runs:
Click here to trigger a rebuild:
https:/
- 2176. By Nick Dedekind on 2016-02-05
-
Fixed requestedHeight
/Width
| Unity8 CI Bot (unity8-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:2176
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
Click here to trigger a rebuild:
https:/
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:2176
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Albert Astals Cid (aacid) wrote : | # |
Text conflict in qml/Stages/
1 conflicts encountered.
| Unity8 CI Bot (unity8-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:2176
https:/
Executed test runs:
FAILURE: https:/
Click here to trigger a rebuild:
https:/
| Michał Sawicz (saviq) wrote : | # |
Text conflict in qml/Stages/
Text conflict in qml/Stages/
2 conflicts encountered.
Unmerged revisions
- 2176. By Nick Dedekind on 2016-02-05
-
Fixed requestedHeight
/Width - 2175. By Nick Dedekind on 2016-02-04
-
added FIXME
- 2174. By Nick Dedekind on 2016-02-04
-
Set screen form factor
- 2173. By Nick Dedekind on 2016-02-04
-
Add FormFactor to Unity.Screens mock

FAILED: Continuous integration, rev:2174 /unity8- jenkins. ubuntu. com/job/ lp-unity8- 1-ci/273/
https:/
Executed test runs:
Click here to trigger a rebuild: /unity8- jenkins. ubuntu. com/job/ lp-unity8- 1-ci/273/ rebuild
https:/