[Digikam-devel] [Bug 147600] open folder - files shown in reverse order

Arnd Baecker arnd.baecker at web.de
Tue Jul 24 10:44:15 BST 2007

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
arnd.baecker web de changed:

           What    |Removed                     |Added
  Attachment #21079|0                           |1
        is obsolete|                            |

------- Additional Comments From arnd.baecker web de  2007-07-24 11:44 -------
Created an attachment (id=21233)
 --> (http://bugs.kde.org/attachment.cgi?id=21233&action=view)
Patch to make the sort order configurable, English improvements

Compared to the previous patch, only the English corrections
by Clytie Siddall (Thanks!) are incorporated.

Further discussion in private mail with Giles (so that it
does not get lost):

Gilles: Currently, the patch fixes Open/Folder feature to order files in
thumbbar. This is not the only one issue : Open/File must be fixed in
this way, because more than one file can be loaded at the same time by
this option...

Arnd: One approach might be to introduce
      in the Routine slotOpenFile() the usage of
	QDir dir(url.path(), patterns),
      where patterns is set to the full names of the file.
      Afterwards, using the routines to sort via QDir's mechanisms
      is possible.

      Does this make sense, and sound like a good solution?

The standard way used is to use the void ShowFoto::applySettings() to
read settings from setup dialog (this method is called when you valid
setup dialog to update editor settings).

Store the setting in a common place to d private class like all others
settings are stored (for ex. d->deleteItem2Trash), and use these settings
where you want (slotOpenFile() or slotOpenFolder()). You can make a
common method to parse folder content accordinly with these settings.
Call this method at the right place...

More information about the Digikam-devel mailing list