subsurface/qt-ui
Linus Torvalds 4f20bb9fb2 When scrolling to dive, scroll to trip first
The behavior at startup is actually very annoying: we select the latest
dive, and expand the trip it is in, but since we use "scrollTo()" on
just the dive, and it's not initially visible, the startup will make the
first dive be at the top of the list view.

Which means that the actual _trip_ detail is not visible at all, since
it will have been scrolled off the list view entirely.

Fix this by first scrolling to the trip, and only then scrolling to the
actual dive (using the default "EnsureVisible" policy).  Obviously, if
it's a trip with lots of dives, scrolling to the dive may end up
scrolling away from the trip header again, but at least that never
happens at startup, and at that point you have to scroll away from the
trip just to show the dive.

Do this same dance when changing the dive selection (mainly noticeable
when picking dives on the globe view).

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-04-28 12:47:15 -07:00
..
css Fix TableWidget ( equipment ones ) on dark scheme. 2013-12-12 03:26:39 +01:00
marble Resync included header with upstream 2014-01-15 15:49:50 +07:00
profile Make heartrate grid less confusing 2014-04-28 12:45:42 -07:00
about.cpp Quit Subsurface with about window in front 2014-04-25 10:21:55 -07:00
about.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
about.ui SubsurfaceAbout class cleanup. 2014-02-08 08:00:27 -08:00
completionmodels.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
completionmodels.h Put include guard to every header 2014-02-11 12:37:01 -08:00
divecomputermanagementdialog.cpp Fixing Hotkeys inconsistency for divecomputer/pref/numbering windows 2014-04-25 13:24:39 -07:00
divecomputermanagementdialog.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
divecomputermanagementdialog.ui Make some dialogs modal to MainWindow 2014-03-12 10:14:17 -07:00
divelistview.cpp When scrolling to dive, scroll to trip first 2014-04-28 12:47:15 -07:00
divelistview.h Add exporting selected dives into CSV file 2014-04-26 17:24:12 -07:00
divelogimportdialog.cpp Ctrl-W and -Q support for GPS, divelogs.de, divecomputer and CVS import 2014-04-25 10:47:44 -07:00
divelogimportdialog.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
divelogimportdialog.ui Tune CVS import dialog 2014-02-27 11:44:59 -08:00
diveplanner.cpp Remove unused variables and fix signed/unsigned mismatch 2014-04-18 13:06:21 -07:00
diveplanner.h Fixed mismatched connections 2014-04-17 22:39:36 -07:00
diveplanner.ui Improvement for various bits of the planner 2014-04-17 07:29:44 -07:00
downloadfromdivecomputer.cpp Ctrl-W and -Q support for GPS, divelogs.de, divecomputer and CVS import 2014-04-25 10:47:44 -07:00
downloadfromdivecomputer.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
downloadfromdivecomputer.ui Enable libdivecomputer log or dump from the UI 2013-12-24 16:26:00 -08:00
exif.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
exif.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
globe.cpp Introduce NO_MARBLE define, make GlobeGPS a dummy 2014-03-27 10:40:06 -07:00
globe.h Introduce NO_MARBLE define, make GlobeGPS a dummy 2014-03-27 10:40:06 -07:00
graphicsview-common.cpp Make heartrate grid less confusing 2014-04-28 12:45:42 -07:00
graphicsview-common.h Make heartrate grid less confusing 2014-04-28 12:45:42 -07:00
groupedlineedit.cpp Whitespace cleanup 2014-03-03 13:29:22 -08:00
groupedlineedit.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
kmessagewidget.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
kmessagewidget.h Another small tweak to whitespace tool 2014-03-05 13:02:23 -08:00
maintab.cpp Only auto-fill coordinates for non-empty location strings 2014-04-28 09:34:27 -07:00
maintab.h Mark Air/Water temp field red for wrong input. 2014-04-14 05:16:31 -07:00
maintab.ui Expand tags approach to divemaster field 2014-01-19 13:57:40 -08:00
mainwindow.cpp Add GUI support for exporting in CSV format 2014-04-26 17:20:32 -07:00
mainwindow.h Add GUI support for exporting in CSV format 2014-04-26 17:20:32 -07:00
mainwindow.ui Add GUI support for exporting in CSV format 2014-04-26 17:20:32 -07:00
modeldelegates.cpp Better handling of mouse on the delegates ( Equipment Edition ) 2014-04-25 07:19:18 -07:00
modeldelegates.h Better handling of mouse on the delegates ( Equipment Edition ) 2014-04-25 07:19:18 -07:00
models.cpp Mark a lot of TODO's where I think it should be moved to C code. 2014-04-17 08:33:51 -07:00
models.h Enable parts of planner based on define 2014-03-23 17:24:40 -07:00
preferences.cpp Fixing Hotkeys inconsistency for divecomputer/pref/numbering windows 2014-04-25 13:24:39 -07:00
preferences.h Remove some unneeded explicit paths in includes 2014-04-11 07:21:21 -07:00
preferences.ui Add option to save userid in data files 2014-04-14 09:40:30 -07:00
printdialog.cpp Print dialog: make Ctrl-Q and Ctlr-W work 2014-04-25 10:27:44 -07:00
printdialog.h Remove printing when building for Android 2014-03-27 10:42:07 -07:00
printlayout.cpp Mark a lot of TODO's where I think it should be moved to C code. 2014-04-17 08:33:51 -07:00
printlayout.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
printoptions.cpp Print: adjustments to PrintDialog 2013-11-30 18:56:25 +02:00
printoptions.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
printoptions.ui UI adjustments in Print Dialog Window 2014-04-16 12:17:49 -07:00
renumber.ui Make some dialogs modal to MainWindow 2014-03-12 10:14:17 -07:00
shiftimagetimes.ui Make some dialogs modal to MainWindow 2014-03-12 10:14:17 -07:00
shifttimes.ui Add current time and adjusted time to gui when adjusting dive's timestamp 2014-03-21 21:26:09 -07:00
simplewidgets.cpp Use original time if available on image loading 2014-04-26 17:24:12 -07:00
simplewidgets.h simplewidgets: Include stdint for cross compatability 2014-03-25 11:19:56 -07:00
starwidget.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
starwidget.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
subsurfacewebservices.cpp Ctrl-W and -Q support for GPS, divelogs.de, divecomputer and CVS import 2014-04-25 10:47:44 -07:00
subsurfacewebservices.h Removed the globals 'userid' and 'save_userid_local' variables 2014-04-17 08:37:31 -07:00
tableview.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
tableview.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
tableview.ui Remove more unused windowTitle properties 2013-11-29 11:02:15 -08:00
tagwidget.cpp Fix a minor bug in the tags widget. 2014-04-23 07:22:03 -07:00
tagwidget.h Do not copy strings when you don't need it. 2014-03-20 09:47:57 -07:00
updatemanager.cpp Update manager: report Linux separately 2014-04-02 12:55:33 -07:00
updatemanager.h Add "Check for updates" Feature 2014-04-02 12:47:41 -07:00
usermanual.cpp Quit Subsurface with user manual window in front 2014-04-25 07:19:18 -07:00
usermanual.h Remove usermanual when building for Android 2014-03-27 10:41:52 -07:00
usermanual.ui Close search panel by button click 2014-02-10 07:12:35 -08:00
webservices.ui Add option to save userid in data files 2014-04-14 09:40:30 -07:00