KMail folder changing bug [Issue N9282] (Was: Re: KDE 3.1: one week delay)

Roger Larsson roger.larsson at norran.net
Mon Nov 11 21:39:16 GMT 2002


On Monday 11 November 2002 18.51, David Faure wrote:
> On Monday 11 November 2002 17:04, Roger Larsson wrote:
> > On Monday 11 November 2002 16.28, George Staikos wrote:
> > > On Monday November 11 2002 09:50, Roger Larsson wrote:
> > > >
> > > > > Do you think maybe we should get together a list of bugs considered
> > > > > "showstoppers" so they can be analysed?
> > > >
> > > > Could you and others please retest if you can reproduce the bug
> > > > in the same way as I do it - it is 100% reporduceable for me?
> > > > 	http://bugs.kde.org/show_bug.cgi?id=48888
> > > > (I think it has a lot to do with drag and autoscroll...)
> > > >
> > > > Can someone (else?) put it as CONFIRMED?
> > >
> > >   David Faure actually had a patch for it, but it doesn't seem to be in
> > > qt-copy (or it is insufficient).  I think this is the same thing as what 
you
> > > describe though.
> > >
> >
> > Where can I find that patch? I am more than willing to try it.
> 
> Well my patch is simply:
> --- qlistview.cpp       2002/10/30 10:59:36     1.48
> +++ qlistview.cpp       2002/11/11 17:46:18
> @@ -4454,8 +4454,6 @@ void QListView::contentsMouseMoveEvent(
>             delete d->scrollTimer;
>             d->scrollTimer = 0;
>         }
> -       // call this to select an item
> -       doAutoScroll();
>      }
>  }
> 
> However I guess there's a reason for that call (although the comment makes
> no sense to me), so maybe this patch breaks something - I'd be curious to
> find out why, though.

Yes, you came to the same conclusion as me.
It made no sense to me either...

> 
> > But I got the impression from trolltech that they had a proper fix that 
were
> > going into qt final
> 
> By going back in qt-copy's CVS, I saw that the previous version of 
qlistview.cpp
> had a new member var (in the d pointer of course) to remember the position
> of the mouse, between contentsMouseMoveEvent and doAutoScroll, which is
> another possible fix. However this change got reverted in a later version of 
Qt,
> I don't know why.

This was only a test patch that I got that were to verify that they found the 
problem. But they said that a PROPER fix would be in the next qt.

> 
> > It might also be that kmail does something strange...
> > It differs from the qt listviews example by using currentChanged on 
folders,
> > instead of slotFolderChanged. And as far as I can tell the listviews 
example
> > works [qt-copy/examples/listviews/listviews], even with added sleeps...
> 
> Hmm. I think doAutoScroll() using QCursor::pos() is the bug, (or the fact 
that
> doAutoScroll() is called from contentsMouseMoveEvent in the first place),
> no matter what the application does.
> 

OK, I will test to remove it.

/RogerL

-- 
Roger Larsson
SkellefteƄ
Sweden





More information about the kde-core-devel mailing list