subsurface/qt-ui
Dirk Hohndel a180af3879 Modify selection changed slot to deal with trips correctly
If a user clicks on a trip, all the dives in a trip should be selected.
But if a user selects a range of dives that happens to have a trip header
in it, then only the range of dives should be selected (the trip header is
marked as 'selected' for visual consistency, even though not all dives in
this trip are selected).

This also changes the code to scrollTo the first selected dive instead of
just expanding the parent. This seems to give us a more pleasant visual
appearance (trying to keep the selected dive centered in the dive list)
and as a side effect no longer hides the first dive trip at program start
(before this change the first dive in the first trip would be the top
entry in the dive list, with its trip just out of sight above).

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-05-12 06:53:57 -07:00
..
addcylinderdialog.cpp Added the code that will load and populate the Tank Info 2013-04-15 17:34:44 -07:00
addcylinderdialog.h Added the code that will load and populate the Tank Info 2013-04-15 17:34:44 -07:00
addcylinderdialog.ui Started the real code on the Qt Interface. 2013-04-13 14:08:16 -07:00
addweightsystemdialog.cpp Fix a couple of small problems in add weightsystem 2013-05-01 16:23:20 -07:00
addweightsystemdialog.h Create Add Weightsystem dialog 2013-05-01 16:02:34 -07:00
addweightsystemdialog.ui Create Add Weightsystem dialog 2013-05-01 16:02:34 -07:00
divelistview.cpp Test the CSS for styling the TableView 2013-05-02 16:56:13 -07:00
divelistview.h Add Qtr_ macros that uses gettext in a tr() compatible manner 2013-04-13 20:44:02 -07:00
maintab.cpp Horizontally align labels on info widget page. 2013-05-09 12:10:34 -07:00
maintab.h Added the code to populate the tabs when a dive is selected. 2013-05-06 09:58:13 -07:00
maintab.ui Fill Dive Notes widget 2013-05-06 10:16:16 -07:00
mainwindow.cpp Modify selection changed slot to deal with trips correctly 2013-05-12 06:53:57 -07:00
mainwindow.h Make nextDC and previousDC work and assign shortcuts 2013-05-10 10:49:00 -07:00
mainwindow.ui Make nextDC and previousDC work and assign shortcuts 2013-05-10 10:49:00 -07:00
modeldelegates.cpp Merge branch 'tomaz-css' into Qt 2013-05-02 17:02:55 -07:00
modeldelegates.h Test the CSS for styling the TableView 2013-05-02 16:56:13 -07:00
models.cpp Start populating the maintab Dive Info widget 2013-05-06 20:38:38 -07:00
models.h Added code to Select a dive, fixed minor annoyances. 2013-05-02 16:56:48 -07:00
plotareascene.cpp Add Qtr_ macros that uses gettext in a tr() compatible manner 2013-04-13 20:44:02 -07:00
plotareascene.h Add Qtr_ macros that uses gettext in a tr() compatible manner 2013-04-13 20:44:02 -07:00
profilegraphics.cpp Fixed loading the first dive via command line on the profile. 2013-05-10 10:49:00 -07:00
profilegraphics.h Fixed loading the first dive via command line on the profile. 2013-05-10 10:49:00 -07:00
starwidget.cpp Added support for showing the Stars on the DiveTable 2013-04-27 12:27:27 -03:00
starwidget.h Added support for showing the Stars on the DiveTable 2013-04-27 12:27:27 -03:00