Thinking about how to optimize image selection

Andreas Schleth schleth_es at web.de
Sun Jan 25 15:42:18 GMT 2026


Hi Robert,

I diddled a bit with the code of Viewer/ViewerWidget.* (knowing very 
little about C++) and found, that the default annotation mode is hard coded.

Well, I can code harder :-)

So I came up with the attached patch, that will change the default mode 
to "tokenizing".
Applying the patch after a git pull should create a sanitized version of 
KPA for our personal use.

This is integrated into my build script (with the patch file residing 
inside the KPA folder):

...
git pull
# patch tokenizing default
patch -p 1 -i tokenizing.patch
...

Works for me (TM)

Cheers, Andreas



Am 25.01.26 um 14:23 schrieb Andreas Schleth via KPhotoAlbum:
> Hi Robert,
>
> I too have not warmed to this "feature".
> Even after 3 years knowing it, I keep forgetting the additional step 
> of hitting crtl-t every time I start the viewer.
>
> Andreas
>
>
>
> Am 25.01.26 um 03:21 schrieb Robert Krawitz via KPhotoAlbum:
>> On 12/4/23 16:15, Andreas Schleth via KPhotoAlbum wrote:
>>> Am 04.12.23 um 19:58 schrieb Robert Krawitz:
>>>> It looks like the annotation mode in the viewer always starts as Locked, and there's no setting to
>>>> change it.  Is this by intent?
>>>>
>>>> I'd like to be able to set it to token mode by default.  Ideally, I'd like to be able to use either
>>>> tokens or tags on any image.
>>> Hi Robert,
>>>
>>> this was introduced recently - see my "bug" report:https://bugs.kde.org/show_bug.cgi?id=474307 and
>>> the follow up in the wish list. Maybe you could support this (https://bugs.kde.org/show_bug.cgi?
>>> id=474307).
>>>
>>> My wife lost half an evening of tagging due to this new feature :-(
>> I just lost about half an hour of work (plus a whole bunch more time tracking it down).  I had
>> completely forgotten about this; I was using an old fork of kpa that I had never merged up (judging
>> by my email a few years ago, largely because of this), or maybe I had changed it.
>>
>> The whole point of tokens is speed.  Having to do this blows that out of the water.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kphotoalbum/attachments/20260125/29f9bcf4/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tokenizing.patch
Type: text/x-patch
Size: 1910 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kphotoalbum/attachments/20260125/29f9bcf4/attachment-0001.bin>


More information about the KPhotoAlbum mailing list