summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelistview.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-26 10:12:45 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-26 10:16:01 -0700
commit43892e36fd58e23c5bd2b1dc400d34afc7d8c9ae (patch)
tree26b1d6c2ec89e3441bf4a645b6f2661ed9e9af88 /qt-ui/divelistview.h
parent2896dbdaf1a7e430a3614d451cbaf8e7d9a1c101 (diff)
downloadsubsurface-43892e36fd58e23c5bd2b1dc400d34afc7d8c9ae.tar.gz
Fix colum visibility selection in the divelist
Several changes: - split the reload of the DiveListView from the reload of the header - don't include the column title in the name of the setting; the title will change depending on the units and localization chosen by the user - rename the slot that toggles visibility to make the code more readable - use setCollumHidden() method to simplify the code - don't save the width of hidden columns (as they would be saved as zero width and can then no longer be enabled) Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelistview.h')
-rw-r--r--qt-ui/divelistview.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/divelistview.h b/qt-ui/divelistview.h
index 6cbcd8319..c1a33db51 100644
--- a/qt-ui/divelistview.h
+++ b/qt-ui/divelistview.h
@@ -31,7 +31,8 @@ public:
void reload();
public slots:
- void hideColumnByIndex();
+ void toggleColumnVisibilityByIndex();
+ void reloadHeaderActions();
Q_SIGNALS:
void currentDiveChanged(int divenr);