Hi Jan, I don't know this part of Qt very well myself but I would imagine there is a function like setSelectedIndex() that you want to use. moveCursor() is probably protected because it's the function that's implemented to catch real cursor motion events so overriding it probably isn't what you want to do.
But I could be wrong. Adam On 13/12/2007, Jan Jockusch <[EMAIL PROTECTED]> wrote: > Hi Albert, > > Hey Jan, > > > > I'm just in the middle of my exam period so I don't have enough time to > > fully review your patch yet, but for now, have you tried using this: > > > > moveCursor(QAbstractItemView::MovePrevious, Qt::NoModifier); > > > > (ie. MovePrevious instead of MoveUp, etc.) > > > > Looks good though, hopefully we can get this working... > > > > Albert > > > > I had tried all kinds of cursor instructions already, and failed. Maybe > moveCursor() does something entirely different. By trial and error I > arrived at the new patch (see attachment). It actually works fine. > > I'm currently polishing the patch so that it doesn't segfault when no > track is activated, and some other minor stuff. So, don't bother testing > this patch, it'll still change a bit. I just wanted to tell you that the > basic problem is solved. > > Good luck on your exams! > > - Ján > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Mixxx-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mixxx-devel > > > ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Mixxx-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mixxx-devel
