[Kde-games-devel] Review Request 110132: QML image provider for KIcon images
Viranch Mehta
viranch.mehta at gmail.com
Mon Apr 22 21:11:46 UTC 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/110132/
-----------------------------------------------------------
Review request for KDE Games.
Description
-------
This patch introduces a new image provider for libkdegames that enables showing KIcon's inside QML. Additionally, ships a KIcon QML component as a wrapper component that takes in the KIcon's name and uses the image provider to show the pixmap.
The purpose of the image provider is for the QML component that I'm working on for KGamePopupItem. Many games use this and should be a readily available component. This component shows a KIcon as its icon alongside the text, hence the patch and the new image provider.
Diffs
-----
declarativeimports/CMakeLists.txt c5b88d9
declarativeimports/corebindingsplugin.h bc3fa32
declarativeimports/corebindingsplugin.cpp 3fef508
declarativeimports/kiconprovider.cpp PRE-CREATION
declarativeimports/kiconprovider_p.h PRE-CREATION
declarativeimports/qml/KIcon.qml PRE-CREATION
declarativeimports/qml/qmldir 79aae32
Diff: http://git.reviewboard.kde.org/r/110132/diff/
Testing
-------
Tested with a simple QML file: http://sprunge.us/Ggje and "qmlviewer -I $KDEDIR/lib/kde4/imports test.qml". shows the correct icon image.
Thanks,
Viranch Mehta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-games-devel/attachments/20130422/d6c97144/attachment.html>
More information about the kde-games-devel
mailing list