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

List:       kde-panel-devel
Subject:    [Panel-devel] Re: KIO::Netaccess support for themes
From:       petri.damsten () iki ! fi (Petri Damsten)
Date:       2005-05-29 22:15:32
Message-ID: 200505292315.30731.petri.damsten () iki ! fi
[Download RAW message or body]

On Sunday 29 May 2005 21:07, Aaron J. Seigo wrote:
> > > > > It copies the file to:
> > > > > ksd.localkdedir() + ksd.kde_default("data") + kapp->name() +
> > > > > "/themes/"
> > >
> > > is that literally what's in the source code?
> >
> > Yes.
>
> any reason why you aren't using KStandardDirs? e.g.:
>
> 	locateLocal("appdata", "themes/", true);

Well, I'm using KStandardDirs:
    KStandardDirs ksd;
    QDir themeDir(ksd.localkdedir() + ksd.kde_default("data")
                  + kapp->name() + "/themes/");

But that locateLocal is much simpler. I can also get rid of the dir creation 
code. Thanks.

Petri
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20050529/6890d7e0/attachment.pgp
[prev in list] [next in list] [prev in thread] [next in thread] 

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