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>
This commit is contained in:
Tomaz Canabrava 2013-05-13 22:14:59 -03:00 committed by Dirk Hohndel
parent a6d9f27445
commit ee7f579242
5 changed files with 73 additions and 201 deletions

View file

@ -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