Bug 212116 - Rename images: sorting does not work [patch]
Summary: Rename images: sorting does not work [patch]
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: AdvancedRename-dialog (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-27 22:48 UTC by Martin Engelmann
Modified: 2022-02-01 06:31 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 0.8.0


Attachments
Patch fixing the sorting (6.79 KB, patch)
2009-10-27 22:52 UTC, Martin Engelmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Engelmann 2009-10-27 22:48:28 UTC
Version:           0.8.0-svn r1041223 (using KDE 4.3.1)
Compiler:          gcc 4.3.4 
OS:                Linux
Installed from:    Debian testing/unstable Packages

As already pointed out in bug 197899 (https://bugs.kde.org/show_bug.cgi?id=197899#c2) the sorting funtion in the rename images dialog does not work. This is still true for 0.8.0-svn r1041223.
Comment 1 Martin Engelmann 2009-10-27 22:52:25 UTC
Created attachment 37922 [details]
Patch fixing the sorting

A detailed description of the changes is available in the beginning of the patch file.
Comment 2 caulier.gilles 2009-10-27 23:16:56 UTC
Thanks Martin. 

I will review your patch tomorow morning.

Gilles Caulier
Comment 3 caulier.gilles 2009-10-28 14:41:33 UTC
SVN commit 1041769 by cgilles:

apply patch #37922 by Martin EngelMann. 

Comments from Martin :

"For this fix a hidden column is created in the BatchProcessImagesList that holds
the sort key for the BatchProcessImagesItems. This sort key is created based on 
the selected sorting criterium.

The already present part of the interface in BatchProcessImagesItem has been
replaced by get and set function for the sortkey. The column of the sortkey is
made available by the static function columnOfSortKey.

In batchprocessimageslist.cpp:44 the index of the column with the sort key is
used instead of calling the static function to avoid an include dependency with
batchprocessimagesitem.h. If this doesn't hurt. The function should be called  
instead of using the magic number.

I've deleted the already commented out function BatchProcessImagesItem::compare
because I don't see any further use of it."

BUGS: 212116



 M  +2 -1      CMakeLists.txt  
 M  +16 -21    batchprocessimagesitem.cpp  
 M  +4 -7      batchprocessimagesitem.h  
 M  +2 -1      batchprocessimageslist.cpp  
 M  +4 -8      renameimageswidget.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1041769
Comment 4 Martin Engelmann 2009-10-28 21:42:20 UTC
Hi Gilles,

thank you for your support and the quick merge.

Regards,
Martin

Am Mittwoch 28 Oktober 2009 14:41:36 schrieb Gilles Caulier:
> https://bugs.kde.org/show_bug.cgi?id=212116
> 
> 
> Gilles Caulier <caulier.gilles@gmail.com> changed:
> 
>            What    |Removed                     |Added
> ---------------------------------------------------------------------------
> - Status|UNCONFIRMED                 |RESOLVED
>          Resolution|                            |FIXED
> 
> 
> 
> 
> --- Comment #3 from Gilles Caulier <caulier gilles gmail com>  2009-10-28
>  14:41:33 --- SVN commit 1041769 by cgilles:
> 
> apply patch #37922 by Martin EngelMann.
> 
> Comments from Martin :
> 
> "For this fix a hidden column is created in the BatchProcessImagesList that
> holds
> the sort key for the BatchProcessImagesItems. This sort key is created
>  based on the selected sorting criterium.
> 
> The already present part of the interface in BatchProcessImagesItem has
>  been replaced by get and set function for the sortkey. The column of the
>  sortkey is made available by the static function columnOfSortKey.
> 
> In batchprocessimageslist.cpp:44 the index of the column with the sort key
>  is used instead of calling the static function to avoid an include
>  dependency with batchprocessimagesitem.h. If this doesn't hurt. The
>  function should be called instead of using the magic number.
> 
> I've deleted the already commented out function
>  BatchProcessImagesItem::compare because I don't see any further use of
>  it."
> 
> BUGS: 212116
> 
> 
> 
>  M  +2 -1      CMakeLists.txt
>  M  +16 -21    batchprocessimagesitem.cpp
>  M  +4 -7      batchprocessimagesitem.h
>  M  +2 -1      batchprocessimageslist.cpp
>  M  +4 -8      renameimageswidget.cpp
> 
> 
> WebSVN link: http://websvn.kde.org/?view=rev&revision=1041769
>
Comment 5 caulier.gilles 2009-10-28 23:11:46 UTC
It's alawyas a pleasure to review your patch. Please continue like this. 

Note : BatchProcessImages plugins is now a pure Qt4 implementation (after a million of commits). Please test it on you computer if you see regression...

Gilles