Merge lp:~alan-griffiths/miral/WindowControllerInterface-isVisible into lp:miral
| Status: | Rejected |
|---|---|
| Rejected by: | Alan Griffiths on 2016-11-07 |
| Proposed branch: | lp:~alan-griffiths/miral/WindowControllerInterface-isVisible |
| Merge into: | lp:miral |
| Diff against target: |
160 lines (+40/-8) 8 files modified
miral-qt/src/common/windowcontrollerinterface.h (+2/-0) miral-qt/src/modules/Unity/Application/mirsurface.cpp (+18/-5) miral-qt/src/platforms/mirserver/windowcontroller.cpp (+5/-0) miral-qt/src/platforms/mirserver/windowcontroller.h (+2/-0) miral-qt/src/platforms/mirserver/windowmanagementpolicy.cpp (+5/-0) miral-qt/src/platforms/mirserver/windowmanagementpolicy.h (+1/-0) miral-qt/tests/framework/stub_windowcontroller.h (+1/-0) miral-qt/tests/modules/WindowManager/windowmodel_test.cpp (+6/-3) |
| To merge this branch: | bzr merge lp:~alan-griffiths/miral/WindowControllerInterface-isVisible |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Gerry Boland | 2016-11-04 | Disapprove on 2016-11-07 | |
|
Review via email:
|
|||
Commit Message
[miral-qt] Implement WindowControlle
- 439. By Alan Griffiths on 2016-11-04
-
Put const in the Qt place
| Daniel d'Andrada (dandrader) wrote : | # |
- 440. By Alan Griffiths on 2016-11-04
-
Don't use the standard library when Qt has an alternative
| Alan Griffiths (alan-griffiths) wrote : | # |
> We use Q_ASSERT() in Qt code.
OK
| Gerry Boland (gerboland) wrote : | # |
Is a state getter/interpreter something that belongs in the Controller?
How do we know if the value returned by this changes?
+ const bool visible = m_controller && m_controller-
there should always be a controller in MirSurface, no need to check for its validity.
| Daniel d'Andrada (dandrader) wrote : | # |
BTW, shouldn't we move our attention to lp:~unity-team/qtmir/miral-qt-integration ?
miral-qt-
If we don't shift our attention, it might not even land.
| Alan Griffiths (alan-griffiths) wrote : | # |
> Is a state getter/interpreter something that belongs in the Controller?
> How do we know if the value returned by this changes?
>
> + const bool visible = m_controller && m_controller-
> there should always be a controller in MirSurface, no need to check for its
> validity.
The tests segfault without the check. But if you want I can do some rework there.
| Gerry Boland (gerboland) wrote : | # |
> The tests segfault without the check. But if you want I can do some rework
> there.
Yes please.
- 441. By Alan Griffiths on 2016-11-04
-
Use StubWindowModel
Controller in tests where nullptr won't do
| Gerry Boland (gerboland) wrote : | # |
Thanks for this, but we will move all development of miral-qt to lp:~unity-team/qtmir/miral-qt-integration to make it easier to land - can you re-propose this change on top of that branch please
| Alan Griffiths (alan-griffiths) wrote : | # |
> Thanks for this, but we will move all development of miral-qt to lp:~unity-
> team/qtmir/
> this change on top of that branch please
Done: lp:~alan-griffiths/qtmir/WindowControllerInterface-isVisible/+merge/310184
Unmerged revisions
- 441. By Alan Griffiths on 2016-11-04
-
Use StubWindowModel
Controller in tests where nullptr won't do - 440. By Alan Griffiths on 2016-11-04
-
Don't use the standard library when Qt has an alternative
- 439. By Alan Griffiths on 2016-11-04
-
Put const in the Qt place
- 438. By Alan Griffiths on 2016-11-04
-
Nasty hack because of existing nasty hack
- 437. By Alan Griffiths on 2016-11-03
-
Another null check
- 436. By Alan Griffiths on 2016-11-03
-
Implement WindowControlle
rInterface: :isVisible( const miral::Window &window)

""" m_surface. unique( ));
+ assert(
"""
We use Q_ASSERT() in Qt code.