On quinta-feira, 18 de fevereiro de 2016 19:25:17 PST Kåre Särs wrote:
> The breeze.rcc file way is actually how Christoph solved it in Kate for 
> Windows and OSX. We create an .rcc file from the breeze icons and at
> start-up  we search for the file in QStandardPaths::DataLocation and if the
> file is found we load it with  registerResource() and add ":/icons" to the
> themeSearchPaths. (kate.git/icons.h)
> 
> Christoph also added ":/icons" to the search path in kicontheme so that
> xmlgui  toolbars and friends also get the icons from the .rcc file.
> 
> We get all the same icons as on Linux neatly in one file

Another way to load, instead of using QResource, is to put everything into one 
.so and simply use QLibrary to open it. Same effect, though this would create 
an architecture-specific resource, instead of sharing it across multiple 
architectures.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center

Reply via email to