summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/divelistview.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-08-14 09:12:21 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-11 16:22:27 -0700
commit3c6cdfd8c02e215f98986cbb74b33f58e47fe632 (patch)
tree206a1eb2bb427df36abe4b08160673dde9bf667b /desktop-widgets/divelistview.h
parentb16be29595f09daa422c2c07075d3b8b60e7fad9 (diff)
downloadsubsurface-3c6cdfd8c02e215f98986cbb74b33f58e47fe632.tar.gz
Dive list: propagate current-item to frontend
The command-objects select a current item, but this selection was not propagated to the front-end. The current item is the base for keyboard-navigation through the dive-list and therefore should be set correctly. It took some experimentation to get the flags right: QItemSelectionModel::Current Hopefully, these are the correct flags across all supported Qt versions! Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/divelistview.h')
-rw-r--r--desktop-widgets/divelistview.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop-widgets/divelistview.h b/desktop-widgets/divelistview.h
index effde2ece..5c9ac2f25 100644
--- a/desktop-widgets/divelistview.h
+++ b/desktop-widgets/divelistview.h
@@ -59,6 +59,7 @@ slots:
void loadImages();
void loadWebImages();
void diveSelectionChanged(const QVector<QModelIndex> &indexes, bool select);
+ void currentDiveChanged(QModelIndex index);
private:
bool mouseClickSelection;
QList<int> expandedRows;