Merge lp:~dandrader/qtmir/improveSessionDebugLogging into lp:qtmir
| Status: | Merged |
|---|---|
| Approved by: | Nick Dedekind on 2016-06-06 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 517 |
| Proposed branch: | lp:~dandrader/qtmir/improveSessionDebugLogging |
| Merge into: | lp:qtmir |
| Diff against target: |
233 lines (+44/-22) 3 files modified
src/modules/Unity/Application/mirsurfacelistmodel.cpp (+21/-0) src/modules/Unity/Application/mirsurfacelistmodel.h (+2/-0) src/modules/Unity/Application/session.cpp (+21/-22) |
| To merge this branch: | bzr merge lp:~dandrader/qtmir/improveSessionDebugLogging |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Nick Dedekind (community) | 2016-06-01 | Approve on 2016-06-06 | |
| Unity8 CI Bot | continuous-integration | Approve on 2016-06-01 | |
|
Review via email:
|
|||
Commit Message
Improve Session debug logging
Description of the Change
* Are there any related MPs required for this MP to build/function as expected? Please list.
No, but it goes well along with https:/
* Did you perform an exploratory manual test run of your code change and any related functionality?
Yes
* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A
| Daniel d'Andrada (dandrader) wrote : | # |
| Unity8 CI Bot (unity8-ci-bot) wrote : | # |
PASSED: Continuous integration, rev:497
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
| Daniel d'Andrada (dandrader) wrote : | # |
On 01/06/2016 09:42, Nick Dedekind wrote:
>> +{
>> >+ auto surfaceList = const_cast<
> It seems strange to have to const cast, since we shouldn't be modifying the list.
> I notice you have a const get in the qtmir::
>
unity::
And that's the class/interface used here, not qtmir::
That way it works with both ProxySurfaceLis
But yes, it would be good to have a const version of get() in
unity::
not be needed.
- 503. By Kevin DuBois on 2016-06-02
-
rebuild for mir 0.23
- 504. By CI Train Bot Account on 2016-06-02
-
Releasing 0.4.8+16.
10.20160602- 0ubuntu1
- 505. By Daniel d'Andrada on 2016-06-09
-
Improve Session debug logging

On 01/06/2016 09:42, Nick Dedekind wrote: :MirSurfaceList Interface &surfaceListConst)
>> +QDebug operator<<(QDebug dbg, const unityapp:
> I don't see this actually being used anywhere.
>
It is not. This is just a facility to help with debugging when you add
ad-hoc, temporary, qDebug() entries to investigate something.
So you can just do "qDebug() << someMirSurfaceList" and its contents
will be nicely printed.
Similar to what most Qt classes have (like QPoint, QRect etc).