Bug 129151 - In file/save dialog, some files are jumped when browsed with the arrows keys
Summary: In file/save dialog, some files are jumped when browsed with the arrows keys
Status: RESOLVED DUPLICATE of bug 56574
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: qt (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords:
: 106734 120609 136276 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-14 16:48 UTC by Nicolas Le Guen
Modified: 2007-01-09 22:17 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Le Guen 2006-06-14 16:48:08 UTC
Version:           inconnu (using KDE 3.5.3, Kubuntu Package 4:3.5.3-0ubuntu0.1 dapper)
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.15-23-k7

In the file/save dialog window, if you browse the file view (simple view) with the arrows keys (eg, down arrown key) the highlight sometimes jump some files.
Comment 1 Philip Rodrigues 2006-06-15 19:13:11 UTC
I get the same with 3.5 branch r548320. I can't tell exactly what the problem is, but some notes: 

1. The behaviour is asymmetric - a file may be skipped when pressing 'down', but not skipped when pressing 'up', etc.

2. It seems to have something to do with the relative lengths of the filenames. Specifically, I can get the behaviour with a directory containing files named:
c
d12345
e
(where '12345' can be any five characters)

but not with s/c/ca/ and s/e/ea/ (so now the middle file only has 4 more letters than the surrounding files).

I see something similar happening in larger directories, but it's harder to tell exactly what is happening there.
Comment 2 Philip Rodrigues 2006-09-02 23:11:01 UTC
*** Bug 106734 has been marked as a duplicate of this bug. ***
Comment 3 Philip Rodrigues 2006-09-23 23:31:41 UTC
*** Bug 120609 has been marked as a duplicate of this bug. ***
Comment 4 Philip Rodrigues 2006-09-23 23:32:36 UTC
This behaviour also occurs in konqueror's multicolumn mode (see bug 120609)
Comment 5 Philip Rodrigues 2006-09-27 23:29:51 UTC
After more investigation, it seems this is a bug in QIconView. I don't really know the best way to deal with this issue.

Here's a code snippet from a Qt app that shows the problem:
  QIconView *iv2 = new QIconView();
  iv2->setArrangement(QIconView::TopToBottom);
  iv2->setResizeMode(QIconView::Adjust);
  iv2->setItemTextPos(QIconView::Right);
  new QIconViewItem(iv2, "a123456789123456");
  new QIconViewItem(iv2, "b");
  new QIconViewItem(iv2, "c2312334545667867345");
  new QIconViewItem(iv2, "quz");
Comment 6 jg 2006-09-27 23:49:45 UTC
Perhaps we can ask Troll to take a look at it, if the bug is within Qt..?
Comment 7 Philip Rodrigues 2006-10-25 21:28:29 UTC
*** Bug 136276 has been marked as a duplicate of this bug. ***
Comment 8 Philip Rodrigues 2007-01-09 22:17:06 UTC
*** This bug has been marked as a duplicate of 56574 ***