Review Request 113236: make the warnings accessible from QML

Giorgos Tsiapaliokas terietor at gmail.com
Thu Jan 30 15:28:02 UTC 2014



> On Jan. 30, 2014, 2:59 p.m., David Edmundson wrote:
> > This patch doesn't match the review description at all. It just prints the error messages.

the idea of the patch was to pass the errors with
"m_qmlObject->rootObject()->setProperty("warnings", warn);" 
because we needed it for plasmoidviewer. But with the qC* methods
there is a better way of doing it. qInstallMessageHandler and the qC* methods
will do the job. So I will discard this review


- Giorgos


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/113236/#review48630
-----------------------------------------------------------


On Oct. 14, 2013, 7:51 a.m., Giorgos Tsiapaliokas wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/113236/
> -----------------------------------------------------------
> 
> Review request for Plasma.
> 
> 
> Repository: plasma-framework
> 
> 
> Description
> -------
> 
> This patch takes the QQmlErrors of QQmlEngine::errors signal and passes them
> to a property of QmlObject, so the errors become accessible from QML.
> 
> 
> Diffs
> -----
> 
>   src/scriptengines/qml/plasmoid/appletinterface.cpp 214a4b1 
> 
> Diff: https://git.reviewboard.kde.org/r/113236/diff/
> 
> 
> Testing
> -------
> 
> I have create a `property string warnings` inside in a containment
> and I was able to print the warnings with
> 
> `onWarningsChanged: console.log(warnings)`
> 
> 
> Thanks,
> 
> Giorgos Tsiapaliokas
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20140130/9ce1a130/attachment.html>


More information about the Plasma-devel mailing list