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

List:       kde-devel
Subject:    Re: more KStandardDirs fun
From:       Harri Porten <porten () tu-harburg ! de>
Date:       1999-07-07 14:39:39
[Download RAW message or body]

John Corey wrote:
> 
> Ok, in tackling some of the stale functions in various apps, I've seen
> one particular trend I'm having trouble finding the kstddirs way of
> doing.
> 
> Take kdebase/kcontrol/display/colorscm.cpp at readSchemeNames() as an
> example.  It takes the $KDEDIR/share/apps/kdisplay/color-schemes dir,
> and wants to parse each file (if there are any).

QStringList list = findDirs("appdata", "color-schemes")

will give you a list of matching dirs (currently only one).

Harri.

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

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