summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelistview.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-29 14:03:36 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-29 14:03:36 -0300
commit9cc04c1ca65424bb0c32aad17be80dd6887b4c65 (patch)
tree49409760398cdb22c2c4036677a2741fb0f4142c /qt-ui/divelistview.h
parentf46a2d56bc12fd23c9d12dac0c47e944b2ecc27f (diff)
downloadsubsurface-9cc04c1ca65424bb0c32aad17be80dd6887b4c65.tar.gz
More work on bug 111, Sorting works as it should.
Sorting is now working as it should, changing from table to tree, keeping the selection from table to tree ( but there's a regression on tree to table conversion, I'll try to fix it in the following commit. ). this commit also cleans a lot of boilerplate code that I wrote to bypass a graphics bug, that I seem to have correctly fixed in this version. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/divelistview.h')
-rw-r--r--qt-ui/divelistview.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/qt-ui/divelistview.h b/qt-ui/divelistview.h
index 99154d4ac..35c401a20 100644
--- a/qt-ui/divelistview.h
+++ b/qt-ui/divelistview.h
@@ -24,12 +24,7 @@ public:
DiveListView(QWidget *parent = 0);
void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected);
void currentChanged(const QModelIndex& current, const QModelIndex& previous);
- void mousePressEvent(QMouseEvent* event);
- void mouseReleaseEvent(QMouseEvent* event);
- void keyPressEvent(QKeyEvent* event);
- void keyReleaseEvent(QKeyEvent*);
- void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command);
- void reload(DiveTripModel::Layout layout = DiveTripModel::TREE);
+ void reload(DiveTripModel::Layout layout = DiveTripModel::TREE, bool forceSort = true);
public slots:
void toggleColumnVisibilityByIndex();