Am Montag, dem 05.08.2024 um 09:44 -0400 schrieb Scott Kostyshak: > The small change of behavior I noticed when comparing 2.3.x to 2.4.x > is that in 2.3.x, the relevant outliner item is second to last; and > in 2.4.x it is last. > > I am picky about a lot of things, but this isn't one of them. I have > no idea whether I prefer 2.3.x or 2.4.x behavior, nonetheless I > though I would report it here just in case. I will not be sad if no > one replies to this email.
The scrolling behavior is controlled by Qt. We could easily let it scroll to center, as requested in the report (see attached patch), or top (by using QAbstractItemView::PositionAtTop instead). However, this has never been the case, and the slight change you see is probably more due to different Qt versions than LyX versions. -- Jürgen
diff --git a/src/frontends/qt/TocWidget.cpp b/src/frontends/qt/TocWidget.cpp index 04fd599857..f7a5d85b60 100644 --- a/src/frontends/qt/TocWidget.cpp +++ b/src/frontends/qt/TocWidget.cpp @@ -460,7 +460,7 @@ void TocWidget::select(QModelIndex const & index) return; } - tocTV->scrollTo(index); + tocTV->scrollTo(index, QAbstractItemView::PositionAtCenter); tocTV->clearSelection(); tocTV->setCurrentIndex(index); }
signature.asc
Description: This is a digitally signed message part
-- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel