[Digikam-users] showfoto: sort folder by alphabet ?

Gilles Caulier caulier.gilles at gmail.com
Tue Mar 18 10:43:24 GMT 2008


2008/3/18, Reinald Gfuellner <gfuellner at web.de>:
> showphoto 0.60 : it there a way to change the sort-order of a folder
>  from "last modified" to "alphabetical"  (in showphoto i.e. without
>  album-database.)
>

No, ordering is harcoded. Sorry. no option yet.

Look :

http://bugs.kde.org/show_bug.cgi?id=154478
http://bugs.kde.org/show_bug.cgi?id=147600

It's a begineer task to implement... (:=))) If somebody is motivated
in this room, code relevant is available on "void
ShowFoto::openFolder(const KURL& url)" method :

http://websvn.kde.org/branches/extragear/kde3/graphics/digikam/showfoto/showfoto.cpp?revision=785523&view=markup

... you can see this code:

    // Directory items sorting. Perhaps we need to add any settings in
config dialog.
    dir.setFilter ( QDir::Files | QDir::NoSymLinks );
    dir.setSorting ( QDir::Time );

Of course, a new setting with using a combobox must be added in config
dialog page to set the right method to ordering items in thumbbar when
user open an Url:

http://websvn.kde.org/branches/extragear/kde3/graphics/digikam/showfoto/setup/setupeditor.cpp?revision=785523&view=markup

Best

Gilles Caulier



More information about the Digikam-users mailing list