summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-12 06:38:47 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-12 06:53:57 -0700
commita180af38797f23b975bc092cf75e9703c4c93921 (patch)
tree906e70650abbfc29eff3b9d10c2f06ac49e99af2 /qt-ui/mainwindow.h
parente69dbebf21a8bf7c5d02a12d93069e99d363ea64 (diff)
downloadsubsurface-a180af38797f23b975bc092cf75e9703c4c93921.tar.gz
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>
Diffstat (limited to 'qt-ui/mainwindow.h')
0 files changed, 0 insertions, 0 deletions