summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelistview.h
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/divelistview.h')
-rw-r--r--qt-ui/divelistview.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/qt-ui/divelistview.h b/qt-ui/divelistview.h
index b4a0d3b35..aae89a40f 100644
--- a/qt-ui/divelistview.h
+++ b/qt-ui/divelistview.h
@@ -29,8 +29,7 @@ public:
void rememberSelection();
void restoreSelection();
void contextMenuEvent(QContextMenuEvent *event);
- QSet<dive_trip_t *> selectedTrips;
-
+ QList<dive_trip_t*> selectedTrips();
public slots:
void toggleColumnVisibilityByIndex();
void reloadHeaderActions();
@@ -55,17 +54,20 @@ signals:
private:
bool mouseClickSelection;
QList<int> expandedRows;
- QList<int> selectedDives;
int sortColumn;
Qt::SortOrder currentOrder;
DiveTripModel::Layout currentLayout;
QLineEdit *searchBox;
QModelIndex contextMenuIndex;
+
+ /* if dive_trip_t is null, there's no problem. */
+ QMultiHash<dive_trip_t *, int> selectedDives;
void merge_trip(const QModelIndex &a, const int offset);
void setupUi();
void backupExpandedRows();
void restoreExpandedRows();
int lastVisibleColumn();
+ void selectTrip ( dive_trip_t* trip );
};
#endif // DIVELISTVIEW_H