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>
This commit is contained in:
Tomaz Canabrava 2013-05-21 16:51:49 -03:00
parent e7b84233af
commit 37ada91000
2 changed files with 38 additions and 3 deletions

View file

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