Merge lp:~alan-griffiths/miral/encapsulate-PromptSessionListener into lp:miral
| Status: | Merged |
|---|---|
| Approved by: | Gerry Boland on 2016-10-26 |
| Approved revision: | 412 |
| Merged at revision: | 415 |
| Proposed branch: | lp:~alan-griffiths/miral/encapsulate-PromptSessionListener |
| Merge into: | lp:miral |
| Diff against target: |
217 lines (+80/-67) 3 files modified
miral-qt/src/platforms/mirserver/mirserverhooks.cpp (+68/-1) miral-qt/src/platforms/mirserver/promptsessionlistener.cpp (+2/-47) miral-qt/src/platforms/mirserver/promptsessionlistener.h (+10/-19) |
| To merge this branch: | bzr merge lp:~alan-griffiths/miral/encapsulate-PromptSessionListener |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Gerry Boland | 2016-10-18 | Approve on 2016-10-26 | |
|
Review via email:
|
|||
Commit Message
[miral-qt] localize dependency on #include <mir/scene/
| Alan Griffiths (alan-griffiths) wrote : | # |
> + void promptProviderA
> const&);
> one thing to be careful of is that Qt signal/slot argument types need to be
> registered with the meta object system like this:
>
> Q_DECLARE_
>
> qRegisterMetaTy
> before a signal using it is fired.
>
> If you don't do this, at *runtime* the signal will fail to be emitted. You get
> a line printed to the console as an error. Lame I know.
>
> I see neither argument being registered in the code (I missed this in
> reviewing rev 400 & 401).
For the avoidance of doubt, this is a pre-existing problem? Nothing to do with *this* branch?
> Have you any tips on testing prompt sessions manually?
Sorry, the use of prompt sessions is a mystery to me.
- 411. By Alan Griffiths on 2016-10-26
-
merge :parent
- 412. By Alan Griffiths on 2016-10-26
-
Fix Qt type registration
| Gerry Boland (gerboland) wrote : | # |
That will do for now, let's land this, and if something broke, we can fix later

+ void promptProviderA dded(qtmir: :PromptSession const&, miral::Application const&);
one thing to be careful of is that Qt signal/slot argument types need to be registered with the meta object system like this:
Q_DECLARE_ METATYPE( namespace: :type) in a header file, outside all namespaces
qRegisterMetaTy pe<namespace: :type>( ); in one C++ file. It should be called before a signal using it is fired.
If you don't do this, at *runtime* the signal will fail to be emitted. You get a line printed to the console as an error. Lame I know.
I see neither argument being registered in the code (I missed this in reviewing rev 400 & 401).
Have you any tips on testing prompt sessions manually?