On Wed, Mar 29, 2006 at 03:30:41PM +0200, Jean-Marc Lasgouttes wrote: > >>>>> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: > > Martin> On Mon, 2006-03-27 at 11:16 +0200, Abdelrazak Younes wrote: > >> Martin Vermeer a écrit :
... > Would it be possible to remember the scrollbar position and reset it > afterwards (if entry is still visible)? Currently the resetting of the > scroll bar is annoying. The attached makes the situation slightly better. - Martin
Index: QToc.C =================================================================== --- QToc.C (revision 13527) +++ QToc.C (working copy) @@ -173,9 +173,9 @@ void QToc::updateToc(int newdepth) dialog_->tocLV->setUpdatesEnabled(true); dialog_->tocLV->update(); if (!multiple) { - dialog_->tocLV->ensureItemVisible(selected_item); + dialog_->tocLV->scrollBy(0, selected_item->itemPos() + - dialog_->tocLV->height() / 2); dialog_->tocLV->setSelected(selected_item, true); - dialog_->tocLV->scrollBy(0, dialog_->tocLV->height() / 2); } setTitle(fromqstr(dialog_->typeCO->currentText())); }
pgpZKdqo5G3h4.pgp
Description: PGP signature