diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-12-02 17:15:40 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-12-02 11:40:39 -0800 |
commit | 7481746d91212dff97233245c77db78f54e25f24 (patch) | |
tree | 9bd03f8e10ab5dd0ea3a0b5fca584d9046592d8e /qt-ui/divelistview.h | |
parent | 768cab66ccdf4e2619b7c143638e85dce43592e1 (diff) | |
download | subsurface-7481746d91212dff97233245c77db78f54e25f24.tar.gz |
Huge speedup when selecting Dives from the Globe View.
The old code ( slow++ ) ignored that each new dive-selection
we recreated all information on the profile window, so this
version ( a lot more verbose, I know. ) will ignore all dives
that are being selected and will only send the 'dive was selected'
information in the last line of the algorithm, instead of calling
it for each dive on the list of 'to be selected' dives.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelistview.h')
-rw-r--r-- | qt-ui/divelistview.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/divelistview.h b/qt-ui/divelistview.h index aae89a40f..da7660e88 100644 --- a/qt-ui/divelistview.h +++ b/qt-ui/divelistview.h @@ -26,6 +26,7 @@ public: bool eventFilter(QObject* , QEvent* ); void unselectDives(); void selectDive(int dive_table_idx, bool scrollto = false, bool toggle = false); + void selectDives(const QList<int>& newDiveSelection); void rememberSelection(); void restoreSelection(); void contextMenuEvent(QContextMenuEvent *event); |