[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: KHTMLPart related
From:       Kevin Krammer <kevin.krammer () gmx ! at>
Date:       2002-07-30 17:37:47
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday, 30. July 2002 19:05, nakedmind@softhome.net wrote:
> Hello everybody,
>
> My application has some html files which are to be rendered by a
> KHTMLPart object. To install them at $KDEDIR/share/apps/myapp/HTML_DIR,
> I just used the file properties macros within kdevelop. In my case
> $KDEDIR is /opt/kde3, and hence to render these files, I just define
> the exact KURL used by the KHTMLPart object. However, I want to share
> my application among many others who may have their kde3 in other
> source dir :-)
>
> 1) I want to know how to tell the KHTMLPart object how to obtain such a
> path on the most possible transparent way.

#include <kstandarddirs.h>

QString filePath = locate("appdata", "HTML_DIR/"+filename);

See KStandardDirs doc for details.

hth,
kevin

- -- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Krammer <kevin.krammer@gmx.at>
Developer at the Kmud Project http://www.kmud.de/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9Rs7wnKMhG6pzZJIRAnThAJ42XhYo44Z1eQlbTHhT3yyUZ79lqgCfSwUH
tl9M48cxpZttBxVtBVtsEX0=
=g2iv
-----END PGP SIGNATURE-----

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic