[Interest] creating a binary .rcc version of a series of Freedesktop icon themes linked through inheritance
Thiago Macieira
thiago.macieira at intel.com
Sun Jun 25 18:10:52 CEST 2017
On domingo, 25 de junho de 2017 04:30:59 PDT René J. V. Bertin wrote:
> Thiago Macieira wrote:
> > RCC registers the files with the resource file engine, so it can be found
> > by QFile with the ":/" prefix. You must be talking about registering with
> > something else.
>
> I'm talking about this kind of registering:
>
> const QString iconThemeRcc =
> QStandardPaths::locate(QStandardPaths::AppDataLocation,
> QStringLiteral("icontheme.rcc"));
> if (!iconThemeRcc.isEmpty()) {
> const QString iconThemeName = QStringLiteral("kf5_rcc_theme");
> const QString iconSubdir = QStringLiteral("/icons/") +
> iconThemeName;
> >>> if (QResource::registerResource(iconThemeRcc, iconSubdir)) { <<<
>
> Hmm, I think I'm beginning to understand that this just registers the icon
> theme provided by "icontheme.rcc" under the name "kf5_rcc_theme".
All this does is load the .rcc file calle kf5_rcc_theme and registers it with
the file engine. If that file had been part of any .so loaded, it would have
been registered automatically.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list