On Wednesday, April 24, 2013 08:40:18 PM Albert Astals Cid wrote:
> El Dimecres, 24 d'abril de 2013, a les 12:49:09, Michael Spencer va 
escriure:
> > In the Plasma tutorial [1], there is mention of extensions that let me
> > using Q/KIcons and localization. I tried adding the path used by qmlview,
> > and it worked, except for the i18n() function, which doesn't give an
> > error but just returns an empty string.
> 
> Returns an empty string or an untranslated one?

Empty. I ended up fixing that by importing:

import org.kde.qtextracomponents 0.1
import org.kde.plasma.core 0.1 as PlasmaCore
import org.kde.plasma.components 0.1 as PlasmaComponents

Are these intended for only Plasma widgets or can I use them in a regular 
application?

> > So what is the best way to access localization features and KIcons from
> > QML?
> Using kdeclarative.

What about the description of the package as provided by Ubuntu, saying that 
it is not suitable for a production environment? Where is documentation for 
KDeclarative? I've tried searching the API site but it can't find 
KDeclarative.

-- 
Michael Spencer

https://iBeliever.github.io

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to