One more thing. No. Two things :)

First. I found usages of this construct with slash appended in
kopetechatwindowstylemanager.cpp (i.e.
KStandardDirs::locateLocal("appdata", "styles/")), so this hack was
apparently already known :). But still i think it should not be used.

Second. I forgot to mention that there is a method
KStandardDirs::findDirs(resource, relativePath) which will return a
list of directories ending with relativePath. It can be used instead
of findResourceDir() solution I suggested above, but the drawback is
that it can't be simple one-liner embedded in *.kcfg, because we'll
need to extract returned directory from QStringList. Or is this ok?

Using findDirs theoretically eliminates the need for putting files in
dirs, although it adds some code, i.e. extracting actual path from
QStringList.

Well, again: what do  you think? :)

Dmitries,
Cheer :-)
_______________________________________________
kopete-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kopete-devel

Reply via email to