summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelistview.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-21 16:51:49 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-21 16:51:49 -0300
commit37ada91000dc14e0d154e1a3f4fd7f1f842ce956 (patch)
tree873b477780e321b852d6c37ae3cbb16396293381 /qt-ui/divelistview.h
parente7b84233af14723814f1340010bb86c6801f1e06 (diff)
downloadsubsurface-37ada91000dc14e0d154e1a3f4fd7f1f842ce956.tar.gz
Added code for handling of show / hide of columns.
The code also remembers to save in the config file. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/divelistview.h')
-rw-r--r--qt-ui/divelistview.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-ui/divelistview.h b/qt-ui/divelistview.h
index 09830b7b5..6cbcd8319 100644
--- a/qt-ui/divelistview.h
+++ b/qt-ui/divelistview.h
@@ -23,7 +23,6 @@ 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);
@@ -31,6 +30,9 @@ public:
void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command);
void reload();
+public slots:
+ void hideColumnByIndex();
+
Q_SIGNALS:
void currentDiveChanged(int divenr);
private: