mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
a6d9f27445
commit
ee7f579242
5 changed files with 73 additions and 201 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue