[KPhotoAlbum] Option to remove histogram.

Andreas Neustifter andreas.neustifter at gmail.com
Sat Jul 2 19:00:42 BST 2011


Hi All!

On 18 June 2011 10:36, Jesper K. Pedersen <blackie at kde.org> wrote:
> First of all, great to see you contribute, do not get it on your nerves that I
> have a few change requests. If you disagree, just tell me and I'll take your
> patches as they are.
>
> This patch has two problems in my eyes:
> 1) When you change the checkbox in the config dialog, you need to restart the
> app for it to take effect. This is troublesome for new users who do not know
> exactly what it does, and only plays with it. All of a sudden the database is
> gone next time they start KPA.
>
> 2) The code has a lot of if (_datebar) { ... }
> This is brittle, and eventually someone will make a change where they forgot
> to check this, and that person will have the datebar, so it doesn't result in
> a crash before someone tries out a released version with this code.
>
> Fortunately there is a simple solution to both problems. Why not just hide()
> the datebar. Sure that means that a non visible datebar is updated all the
> time, and if that turns out to be a slowdown, then simply check that in the
> relevant painting code.
>
> You would of course need to show/hide as soon as the user hits OK or apply in
> the config dialog.
>
> How does that sound?

Good, heres the revised version:
https://github.com/astifter/kphotoalbum-fork/commit/8c5762772a4673a88bcec2144a75810508e68b46

Andi



More information about the Kphotoalbum mailing list