summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelistview.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-14 08:18:26 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-14 08:18:26 -0300
commitb0374047dd6a31d8b16c6991ee0ffc51c198569e (patch)
treecf950820fc57fdeaac6ae81f43b80b62a73e4054 /qt-ui/divelistview.h
parent5868b37e6bde1eaa6da09aac5e269557d94d7641 (diff)
downloadsubsurface-b0374047dd6a31d8b16c6991ee0ffc51c198569e.tar.gz
code to show profile again
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/divelistview.h')
-rw-r--r--qt-ui/divelistview.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/qt-ui/divelistview.h b/qt-ui/divelistview.h
index 9df8b5fa1..ce6238d25 100644
--- a/qt-ui/divelistview.h
+++ b/qt-ui/divelistview.h
@@ -18,19 +18,19 @@
class DiveListView : public QTreeView
{
+ Q_OBJECT
public:
DiveListView(QWidget *parent = 0);
-
void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected);
+ void currentChanged(const QModelIndex& current, const QModelIndex& previous);
void setModel(QAbstractItemModel* model);
-
void mousePressEvent(QMouseEvent* event);
void mouseReleaseEvent(QMouseEvent* event);
void keyPressEvent(QKeyEvent* event);
void keyReleaseEvent(QKeyEvent*);
-
void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command);
-
+Q_SIGNALS:
+ void currentDiveChanged(int divenr);
private:
bool mouseClickSelection;
};