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

List:       kde-devel
Subject:    Re: KStandardDirs::findResource returns nothing
From:       David Faure <david () mandrakesoft ! com>
Date:       2002-06-02 21:22:34
[Download RAW message or body]

On Sunday 02 June 2002 19:00, Heiner Lamprecht wrote:
> Hi all,
> 
> I'm trying to access some app-specific data. With KDE2, I used:
> 
> <---------------------------------------------------------------->
>   KStandardDirs* globalDirs = KGlobal::dirs();
>   mapDir = globalDirs->findResource("data", "mapdata");
> <---------------------------------------------------------------->

Try "mapdata/" if you're looking for a directory (not a file).

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KDE, Making The Future of Computing Available Today


 
>> 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