aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/divelistview.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-13 22:14:59 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-13 21:37:08 -0500
commitee7f579242568d86e7ec744c17585066c30fa943 (patch)
tree56931e11aa77752f0a04b0eb2807f074807b5c47 /qt-ui/divelistview.h
parenta6d9f274454c09b39d79a6300de85b4c99722770 (diff)
downloadsubsurface-ee7f579242568d86e7ec744c17585066c30fa943.tar.gz
Trying to make the DiveList selection behave correctly
And rip out all the code that Dirk put there to do that. 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.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/qt-ui/divelistview.h b/qt-ui/divelistview.h
index be9774c5c..9cccd39ae 100644
--- a/qt-ui/divelistview.h
+++ b/qt-ui/divelistview.h
@@ -20,6 +20,17 @@ class DiveListView : public QTreeView
{
public:
DiveListView(QWidget *parent = 0);
+
+ void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected);
+ void setModel(QAbstractItemModel* model);
+
+ void mousePressEvent(QMouseEvent* event);
+ void mouseReleaseEvent(QMouseEvent* event);
+
+ void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command);
+
+private:
+ bool mouseClickSelection;
};
#endif // DIVELISTVIEW_H