[Bug 247659] New: In big albums re-sorting thumbnails on opening right tab bar, move selected image out the screen.

classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 247659] New: In big albums re-sorting thumbnails on opening right tab bar, move selected image out the screen.

Bugzilla from fest.in@gmail.com
https://bugs.kde.org/show_bug.cgi?id=247659

           Summary: In big albums re-sorting thumbnails on opening right
                    tab bar, move selected image out the screen.
           Product: digikam
           Version: 1.3.0
          Platform: Gentoo Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Thumbnails
        AssignedTo: [hidden email]
        ReportedBy: [hidden email]


Version:           1.3.0 (using KDE 4.5.0)
OS:                Linux

In big albums, clicking on right tab bar with selected image, moves it out of
the screen.
IMHO it's pretty annoying bug, cause you lose selected image out of sight, and
have funny situation: In right tab you have properties of image, that you don't
see.


Reproducible: Always

Steps to Reproduce:
1. Open big album (with thumbnails that don't feet on one screen)
2. Scroll down and select image image in 7+ row.
3. Click on right tab bar (properties or etc)

Actual Results:  
4. Now in place of chosen image, locates other one. And if album is big enough
- selected image even not on the screen.

Expected Results:  
5. Selected image stays at least on the screen.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 247659] In big albums re-sorting thumbnails on opening right tab bar, move selected image out the screen.

Martin Klapetek
https://bugs.kde.org/show_bug.cgi?id=247659





--- Comment #1 from Martin Klapetek <martin klapetek gmail com>  2010-08-13 18:03:31 ---
Created an attachment (id=50137)
 --> (http://bugs.kde.org/attachment.cgi?id=50137)
Patch fixing this bug (against GSoC branch, but should be clearly appliable to
1.4 branch)

I've created a simple patch solving this issue. It scrolls back to the image
when the sidebar is expanded. It _should_ also work when the sidebar is
shrinked back, but for some reason, it doesn't. The slot is called, id is set,
but the scroll won't happen. I *think* that the scroll may occur immediately
after the signal is emitted but before the sidebar is actually hidden, and then
when it really hides, the view gets wider and thus the scrolled image moves.
Either that, or it is a bug in Qt's QListView::scrollTo().

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 247659] In big albums re-sorting thumbnails on opening right tab bar, move selected image out the screen [patch]

Gilles Caulier-4
In reply to this post by Bugzilla from fest.in@gmail.com
https://bugs.kde.org/show_bug.cgi?id=247659


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]
            Summary|In big albums re-sorting    |In big albums re-sorting
                   |thumbnails on opening right |thumbnails on opening right
                   |tab bar, move selected      |tab bar, move selected
                   |image out the screen.       |image out the screen
                   |                            |[patch]




--- Comment #2 from Gilles Caulier <caulier gilles gmail com>  2010-08-16 14:29:29 ---
Marcel,

I would to see this entry fixed too in GoSC2010 and trunk. After to have
processed more than 1200 photos recently, this dysfunction has irritated me a
little bit...

Patch from Martin is very simple to review. It sound fine for me. Your
viewpoint ?

Gilles Caulier

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 247659] In big albums re-sorting thumbnails on opening right tab bar, move selected image out the screen [patch]

Gilles Caulier-4
In reply to this post by Bugzilla from fest.in@gmail.com
https://bugs.kde.org/show_bug.cgi?id=247659





--- Comment #3 from Gilles Caulier <caulier gilles gmail com>  2010-08-16 14:50:04 ---
The crash appears in libpgf when thumbnails are created.

Marcel, it's a possible race condition with thumbnail treads ?

Gilles Caulier

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 247659] In big albums re-sorting thumbnails on opening right tab bar, move selected image out the screen [patch]

Gilles Caulier-4
In reply to this post by Bugzilla from fest.in@gmail.com
https://bugs.kde.org/show_bug.cgi?id=247659





--- Comment #4 from Gilles Caulier <caulier gilles gmail com>  2010-08-16 14:59:49 ---
Oups, sorry for #3, wrong entry...

Gilles Caulier

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 247659] In big albums re-sorting thumbnails on opening right tab bar, move selected image out the screen [patch]

Gilles Caulier-4
In reply to this post by Bugzilla from fest.in@gmail.com
https://bugs.kde.org/show_bug.cgi?id=247659





--- Comment #5 from Gilles Caulier <caulier gilles gmail com>  2010-08-16 15:23:47 ---
Created an attachment (id=50611)
 --> (http://bugs.kde.org/attachment.cgi?id=50611)
patch to apply on trunk (1.4.0)

Martin,

I just apply your patch against 1.4.0. This version is the same than you
without any special modification.

Your patch work when you expand a sidebar, but it doesn't work when you reduce
it, as you said (there Qt4.6 is used). Also, it doesn't work with a multiple
selection : selection is disabled as well...

Note : please continue to try this patch against 1.4.0, not GoSC2010 branch.
It's will be easy to sync both later, from trunk to branch, not the inverse...

Gilles Caulier

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 247659] In big albums re-sorting thumbnails on opening right tab bar, move selected image out the screen [patch]

Martin Klapetek
In reply to this post by Bugzilla from fest.in@gmail.com
https://bugs.kde.org/show_bug.cgi?id=247659


Martin Klapetek <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]




--- Comment #6 from Martin Klapetek <martin klapetek gmail com>  2010-08-17 22:42:17 ---
What should be the behaviour with multiple selection? Scroll to first, to last,
to the midddle (think of selection spreaded through entire album, ie. 3 images
in the first row, 7 images in the 12th row, 4 images in 14th row, 2 images in
22nd row etc)?

Regarding patching against 1.4.0 - reasonable, will do.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 247659] In big albums re-sorting thumbnails on opening right tab bar, move selected image out the screen [patch]

Gilles Caulier-4
In reply to this post by Bugzilla from fest.in@gmail.com
https://bugs.kde.org/show_bug.cgi?id=247659





--- Comment #7 from Gilles Caulier <caulier gilles gmail com>  2010-08-17 22:46:23 ---
I think to scroll to the first item from the selection is the more logic for
me...

Gilles

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 247659] In big albums re-sorting thumbnails on opening right tab bar, move selected image out the screen [patch]

Marcel Wiesweg
In reply to this post by Bugzilla from fest.in@gmail.com
https://bugs.kde.org/show_bug.cgi?id=247659





--- Comment #8 from Marcel Wiesweg <marcel wiesweg gmx de>  2010-08-23 10:32:50 ---
Have you checked that multiple selection is not reset now when the sidebar is
expanded?

scrollToCurrentSelected can be simplified, reducing sideeffects, probably like
this:
if (selectionModel()->hasSelection())
    scrollTo(currentIndex());

A better implementation would store the a) first visible selected item; if
none, b) first visible item before resize, and then, after resize, scroll so
that this item is visible. I'm not sure if this is easily possible from
resizeEvent, because the widget is already resized then.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 247659] In big albums re-sorting thumbnails on opening right tab bar, move selected image out the screen [patch]

Bugzilla from fest.in@gmail.com
In reply to this post by Bugzilla from fest.in@gmail.com
https://bugs.kde.org/show_bug.cgi?id=247659





--- Comment #9 from Fest <fest in gmail com>  2011-07-01 11:55:17 ---
Digikam 2.0.0-beta6:

1)I didn't managed to understand on what photo Digikam center window (not on
selected one), but selected image always stays on the screen.
2)Multiple selection is not reset, Digikam center window on last selected
photo.

Is there be any further improvements (like center main window on selected
photo), or close the bug ?

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 247659] In big albums re-sorting thumbnails on opening right tab bar, move selected image out the screen [patch]

Bugzilla from fest.in@gmail.com
In reply to this post by Bugzilla from fest.in@gmail.com
https://bugs.kde.org/show_bug.cgi?id=247659





--- Comment #10 from Fest <fest in gmail com>  2011-07-01 11:57:12 ---
Sorry, small mistake.
2)Multiple selection is not reset, Digikam window show last selected
photo. (Not center on it)

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 247659] In big albums re-sorting thumbnails on opening right tab bar, move selected image out the screen [patch]

Gilles Caulier-4
In reply to this post by Bugzilla from fest.in@gmail.com
https://bugs.kde.org/show_bug.cgi?id=247659





--- Comment #11 from Gilles Caulier <caulier gilles gmail com>  2011-07-01 13:22:34 ---
Please check with 2.0.0-RC just released...

Gilles Caulier

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 247659] In big albums re-sorting thumbnails on opening right tab bar, move selected image out the screen [patch]

Bugzilla from fest.in@gmail.com
In reply to this post by Bugzilla from fest.in@gmail.com
https://bugs.kde.org/show_bug.cgi?id=247659





--- Comment #12 from Fest <fest in gmail com>  2011-07-04 22:16:48 ---
Digikam 2.0.0-rc. Same results as in beta.

Folder with 84 photos; main window show images in 3 rows (out of 14) and 6
columns.

1)Selected image stays on the screen after opening sidebar.

But I didn't managed to understand on what photo Digikam will center window.
Selected image can be moved to any row or "column".
For example:
Selecting image in 2 row (4 out of 14) and 3 column - move it after opening
sidebar to 1 row and 1 column.
Same trick to image in 2 row (5 out of 14) and 3 column - move it after opening
sidebar to 1 row and 2 column.


2)Multiple selection is not reset, Digikam window show last selected
photo.
Selected image can be moved to any row or "column".

So except of strange sorting it's resolved.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 247659] In big albums re-sorting thumbnails on opening right tab bar, move selected image out the screen [patch]

Gilles Caulier-4
In reply to this post by Bugzilla from fest.in@gmail.com
https://bugs.kde.org/show_bug.cgi?id=247659


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|1.3.0                       |2.0.0




--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 247659] In big albums re-sorting thumbnails on opening right tab bar, move selected image out the screen [patch]

Marcel Wiesweg
In reply to this post by Bugzilla from fest.in@gmail.com
https://bugs.kde.org/show_bug.cgi?id=247659


Marcel Wiesweg <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED




--- Comment #13 from Marcel Wiesweg <marcel wiesweg gmx de>  2011-07-11 15:54:29 ---
Digikam will ensure the image is visible - it need not be centered. If it's in
the top row, it cannot be centered. If the number of images per row changes,
position will change anyway. It can become too complex, so we just check that
it is visible somewhere.

I understand this bug can be closed because testing is successful.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 247659] In big albums re-sorting thumbnails on opening right tab bar, move selected image out the screen [patch]

Gilles Caulier-4
In reply to this post by Bugzilla from fest.in@gmail.com
https://bugs.kde.org/show_bug.cgi?id=247659

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Version Fixed In|                            |2.0.0

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel