diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2017-11-30 17:44:32 +0100 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-12-01 03:39:10 +0100 |
commit | 4296ca11a6a663dd61ec917efd6f50016709b25a (patch) | |
tree | f45b834ac730295ee5a0b9265c16a32e42ddeca4 /desktop-widgets/mainwindow.h | |
parent | 1208bc8428baae28ebf24a3cdf00bf4b0c030fd7 (diff) | |
download | subsurface-4296ca11a6a663dd61ec917efd6f50016709b25a.tar.gz |
Dynamically generate recent files actions
Instead of using four recent files actions defined in mainwindow.ui,
generate these actions dynamically depending on the macro NUM_RECENT_FILES.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/mainwindow.h')
-rw-r--r-- | desktop-widgets/mainwindow.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop-widgets/mainwindow.h b/desktop-widgets/mainwindow.h index 237efd993..75c32c2e4 100644 --- a/desktop-widgets/mainwindow.h +++ b/desktop-widgets/mainwindow.h @@ -222,6 +222,7 @@ private: struct dive_components what; QList<QAction *> profileToolbarActions; QStringList recentFiles; + QAction *actionsRecent[NUM_RECENT_FILES]; struct WidgetForQuadrant { WidgetForQuadrant(QWidget *tl = 0, QWidget *tr = 0, QWidget *bl = 0, QWidget *br = 0) : |