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