diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-11-24 19:57:14 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-12-12 15:52:40 -0800 |
commit | 369c5b0dc656cbf4da2c8185debc355af4243cc5 (patch) | |
tree | 45d166b0af297a44158e5eae349b903a59026ebc /desktop-widgets/divelistview.h | |
parent | 712e4680cae91ca3ca7291bc7f5124d5a3578a4d (diff) | |
download | subsurface-369c5b0dc656cbf4da2c8185debc355af4243cc5.tar.gz |
desktop: init dive list header actions in constructor
The main window called a function to init the header actions
(i.e. the context menu) of the dive-list. There is no reason why
this shouldn't be done in the constructor of the dive list, since
it only accesses the QSettings, which are available at application
startup. This improves modularity of the code (by a tiny, tiny bit).
Moreover, the initialization function was at the same time the
header-reloading function. That function can now be folded
into the settings-changed function, since that is the only
remaining user.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/divelistview.h')
-rw-r--r-- | desktop-widgets/divelistview.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/desktop-widgets/divelistview.h b/desktop-widgets/divelistview.h index 990d0446b..1853dab1d 100644 --- a/desktop-widgets/divelistview.h +++ b/desktop-widgets/divelistview.h @@ -34,7 +34,6 @@ signals: public slots: void settingsChanged(); - void reloadHeaderActions(); private slots: void toggleColumnVisibilityByIndex(); |