Bug 56574 - [test case]navigating in file list with arrows in multicolumn view mode behaves oddly
Summary: [test case]navigating in file list with arrows in multicolumn view mode behav...
Status: RESOLVED WORKSFORME
Alias: None
Product: konqueror
Classification: Applications
Component: file icon view (show other bugs)
Version: 3.5
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 93350 96925 129151 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-03-29 12:41 UTC by 0mecir
Modified: 2009-09-08 16:27 UTC (History)
11 users (show)

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


Attachments
test case (285 bytes, application/octet-stream)
2005-05-10 15:19 UTC, till
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 0mecir 2003-03-29 12:41:55 UTC
Version:            (using KDE KDE 3.1)
Installed from:    Mandrake RPMs
Compiler:          gcc 3.2 
OS:          Linux

Maybe this is related to #55583, but who knows?

In list view mode (that where you see only file names, with icons being left from them :P), if your directory has a file with name long enough not to fit in one line (about 20 chars), then strange things start to happen when you try to move around with arrow keys:
that item is usually skipped when you keep pressing Down key, moving down
also, if you keep pressing the Down key, at botton of column the focus suddenly moves to that skipped item, continuing from there down. So, if you hold the Down key, it moves down then returns, moves again, infinitely.

Sometimes this didn't happen if there was too few files that fit in one column, sometimes it did...

Maybe this is a bug in KListView in kdelibs, but I'm not sure and I've only observed this here, so I'm posting to konq buglist :)

/ Tomas
Comment 1 Maksim Orlovich 2003-06-22 05:07:34 UTC
Carsten: Do you think that this is the same QListView bug that affected 
KFileDialog? 
Comment 2 Carsten Pfeiffer 2003-06-22 05:17:54 UTC
Subject: Re:  navigating in file list with arrows in list view mode behaves oddly

On Sunday 22 June 2003 05:07, you wrote:

> 05:07 ------- Carsten: Do you think that this is the same QListView bug
> that affected KFileDialog?

Navigation in QListView never was a problem, only in QIconView.

Cheers
Carsten Pfeiffer
-----BEGIN PGP SIGNATURE-----

iQEVAwUBPvUfnaWgYMJuwmZtAQEfGwgAl05MpBg7cXCLFGMF+AnSsXibqKpW3S9R
izBtKq+OOJyplrhXISA1SZJuMJf/lfiLPPjlvbBSVpdfJUKSJli5QNl+F9+ZnO7w
3eY32fJHkx/tLxJc64/SJouig4bpzoGZhyMY6pv7mKC8zI06qRqXekqUzq+aJSOl
K7Bny62yEaHFdcGzrB+aq9Q1cB6wUjaT2b8DklVs9ZRx7Ywlnz0mSwc4Thvf0vc4
eBLpEiuFgYhNLQUMUD6qKD/RiiHfBsEUZyW93VH5IF3pGDqq7IODF2mgZRWvUilp
VdblIm7yaDmUDJtReA+GMEQob92rTI1J+/0kGyYadEYM/lyJh6OsZw==
=NET/
-----END PGP SIGNATURE-----

Comment 3 John Firebaugh 2003-08-25 00:32:36 UTC
Can't reproduce 
Comment 4 till 2005-05-10 15:11:57 UTC
this is still true. though i think that the original reporter was talking about "MultiColumn View".

i'll attach a tar that shows the problems.
Comment 5 till 2005-05-10 15:19:22 UTC
Created attachment 10975 [details]
test case

this tar contains some (1 byte sized) files. when viewed with konqueror in
"MultiColumn View" mode, the arrow keys behave really strangely:
some items are skipped, and sometimes the highlight wraps around at really
strange places. up and down arrows are not consistent either. (the up-arrow
skips less than the down-arrow).
and: with different icon sizes the keys behave differently.

i'm using kde 3.4, qt. 3.3.4
Comment 6 Frank Siegert 2005-08-08 11:14:49 UTC
I can confirm this behaviour in multi column view. Moving through the files with right/left arrow keys works, but when using the up/down arrow keys, some files get skipped and sometimes you get trapped in a loop between some files.

I can also confirm, that it behaves differently on different icon sizes.

A really weird behaviour that is most annoying.

I am using Debian binaries btw. (unofficial KDE 3.4.1 ones from alioth, AMD64)
Comment 7 Tommi Tervo 2005-08-09 14:14:54 UTC
Works fine with 3.5a1 but not with 3.4.1.
Comment 8 Tommi Tervo 2005-08-09 15:09:20 UTC
*** Bug 96925 has been marked as a duplicate of this bug. ***
Comment 9 Trent 2005-11-05 07:55:47 UTC
I can also confirm for 3.5 beta 2 in multicolumn mode.
Comment 10 lexual 2006-03-28 15:25:04 UTC
couldn't reproduce with 3.5.1 from ubuntu dapper.
Comment 11 Frank Siegert 2006-03-28 17:20:34 UTC
Interesting... for a fresh user account, long filenames get wrapped and this problem seems fixed. For my existing account, long filenames don't get wrapped and this problem persists. 3.5.2 on Kubuntu Breezy.
Comment 12 Frank Siegert 2006-03-28 17:25:38 UTC
Nevermind... problem persists. Just set width of symbol texts in konqis settings to something large (300 px) and you will notice the problems, right Lex?
Comment 13 lexual 2006-04-24 02:34:29 UTC
confirming for 3.5.2 from debian.
to reproduce:
* have a folder with file with long name.
* change settings->appearance->width_for_icon_text to 300 px
* navigate folder with up/down
* notice the strange behaviour
Comment 14 Ryan Patterson 2006-11-04 15:47:26 UTC
This bug still exists.
Comment 15 Thomas 2006-11-04 15:49:41 UTC
I can confirm as well, with KDE 3.5.5.
Comment 16 Philip Rodrigues 2007-01-09 22:17:08 UTC
*** Bug 129151 has been marked as a duplicate of this bug. ***
Comment 17 Philip Rodrigues 2007-01-09 22:18:32 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 18 Philip Rodrigues 2007-01-09 23:40:22 UTC
*** Bug 93350 has been marked as a duplicate of this bug. ***
Comment 19 Marcus Better 2008-03-10 18:40:46 UTC
Bug confirmed with KDE 3.5.8:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=456933
Comment 20 William White 2008-04-28 06:23:34 UTC
Finally got annoyed with kuickshow and decided to go hunting.  Been digging through QIconView source, the problem is that the "key down" navigation finds the closest item downward whose center exists within a rectangle whose width equals that of the current selection.  In other words if you have (a, bbbbbb, c, d) in a column, moving down from 'a' will skip 'bbbbbb' because the latter's center lies outside the rectangle whose width is that of 'a'.

QT project closed and rejected without comment a bug report (#133061) about this.  Fixing it would require patching iconview/qiconview.cpp:keyPressEvent() to search for closest among intersecting rectangle rather than closest among points within a rectangle.  This might break other things, so I doubt TrollTech will accept a patch.  I might try anyway.

Possible workarounds:
1. Reimplement QIconView in kdelibs
2. Add trailing spaces in QIconViewItem text.
3. Switch to fixed grid (which would mean equal column widths)
Comment 21 Jaime Torres 2008-07-07 19:15:16 UTC
I've been able to reproduce it only in the Icon view, when the "show them in groups" flag is enabled using konqueror 4 svn trunk r828814.
Comment 22 lwilpan 2008-11-01 16:33:32 UTC
Also seeing this in KDE 3.5.9-r3.  Of William's workarounds, #3 makes the most sense to me.  In MultiColumn mode, all items are effectively the same width, so that seems a sensible way to represent them.  What code in KDE would need to change to make that happen?
Comment 23 David Faure 2009-02-18 22:14:29 UTC
I wanted to check if this (high-voted) bug was still present in KDE 4, but it looks like I'll have to wait for the multicolumn-view mode to be reintroduced (this is on the feature list for KDE-4.3).
Comment 24 FiNeX 2009-09-08 16:27:38 UTC
This bug is no more reproducible in multicolumn view in dolphin (tested KDE 4.4 trunk)