KStandardDirs and documentation on trunk
huntedhacker at tiscali.co.uk
Sat May 19 22:15:49 BST 2007
On Saturday 19 May 2007, Philip Rodrigues wrote:
> I'm trying to work out what technical things need to be done to make
> sure the toolchain for creating/viewing documentation is ready in KDE
> 4. The first problem I've noticed is that the help:/ ioslave calls
> KGlobal::dirs()->resourceDirs("html") to find out where the
> documentation is stored, and gets an empty QStringList back. A few
> other people have confirmed this on different systems. I didn't
> understand the KStandardDirs code enough to try to fix this, but if I
> insert "KDEDIR/share/doc/HTML" into the QStringList, the ioslave
> works almost perfectly.
I've figured out why: KStandardDirs is never told about the "html"
KStandardDirs::kde_default("html") will return "share/doc/HTML",
but "html" isn't listed in the types that
KStandardDirs::addKDEDefaults() adds resource types for.
Despite the claims to the contrary in the documentation for
KStandardDirs::addResourceType(), not all the standard resource paths
returned by kde_default() are added by addKDEDefaults().
Should all the standard directories returned by kde_default() be added
by addKDEDefaults()? If so, I can do that.
Ubuntu/Kubuntu: http://www.ubuntu.org http://www.kubuntu.org
Please avoid sending me Word or PowerPoint attachments.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
More information about the kde-core-devel