← Back to team overview

ubuntu-phone team mailing list archive

Re: Icon QML Component

 

On 08.01.2014 08:38, Victor Palau wrote:
You still need to use Qt.resolveurl with image://theme. Works for me on
a ToobarButton on the device.

No, Qt.resolvedUrl() only works on relative paths, to convert from local (as in current-file-relative) to absolute paths. image://theme/foo is an absolute url, so no resolving necessary.

To confirm, you can always console.log(url, Qt.resolvedUrl(url)) and see that it's not touched.

http://qt-project.org/doc/qt-5.0/qtqml/qml-qt.html#resolvedUrl-method
--
Michał (Saviq) Sawicz <michal.sawicz@xxxxxxxxxxxxx>
Canonical Services Ltd.


References