]> cloud.milkyroute.net Git - dolphin.git/commit
Make "open path" and "open path in new tab" scroll to the selected item
authorAkseli Lahtinen <akselmo@akselmo.dev>
Fri, 29 Nov 2024 09:24:55 +0000 (09:24 +0000)
committerAkseli Lahtinen <akselmo@akselmo.dev>
Fri, 29 Nov 2024 09:24:55 +0000 (09:24 +0000)
commit15e0c2a98f480f203ce168b6fa9a2e1f2b0ed8f8
tree6bc955bb18cf6ff1ded9fb95e2f9b168d8f155ca
parentac1e52ce46120d269ce1b8b49c85ab59d9aeccd1
Make "open path" and "open path in new tab" scroll to the selected item

**Open Path**

When user clicks on "Open Path" after searching for an item,
user expects the view to show the item immediately.

We wait for the KItemListSmoothScroller to be done with its animation before the
scrollbar sizes are being changed.

**Open Path in New Tab**

When user selects "Open Path in New Tab", we open a new tab to the folder where the file is, then select and set the file current. We need to get the correct tab when opening one, so it has been added as a return value.

BUG:495613
src/dolphincontextmenu.cpp
src/dolphinmainwindow.cpp
src/dolphinmainwindow.h
src/dolphintabwidget.cpp
src/dolphintabwidget.h
src/kitemviews/kitemlistcontainer.cpp
src/kitemviews/private/kitemlistsmoothscroller.cpp
src/kitemviews/private/kitemlistsmoothscroller.h