Review Request 125927: Unbox QJSValue in config property map
David Edmundson
david at davidedmundson.co.uk
Tue Nov 3 12:59:59 UTC 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/125927/
-----------------------------------------------------------
(Updated Nov. 3, 2015, 12:59 p.m.)
Status
------
This change has been marked as submitted.
Review request for Plasma.
Changes
-------
Submitted with commit f2c9db6b770cc7e036247790dfc70da721a0570e by David Edmundson to branch master.
Repository: kdeclarative
Description
-------
Currently if one saves a QJSValue into the property map we save the
correct real value, but the propertymap still holds the data as a
QJSValue when retrieved.
This causes an error if a property map is moved between engines as a
QJSValue can only be in one. This can be seen in the system tray where
you can't configure entries on the first load.
By using the updateValue we can intercept updates QML and the property
map making sure only real datatypes are stored in our map.
Diffs
-----
src/kdeclarative/configpropertymap.h 21a10fcb56c2929fcb43a3387566c101aa16e90f
src/kdeclarative/configpropertymap.cpp 93c49a3b1f5929a85754e30704821a36717d4f5d
Diff: https://git.reviewboard.kde.org/r/125927/diff/
Testing
-------
plasmoidviewer -a org.kde.plasma.systemtray - can conifgure entries \o/
Thanks,
David Edmundson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20151103/8523e827/attachment.html>
More information about the Plasma-devel
mailing list