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>
This commit is contained in:
Berthold Stoeger 2017-11-30 17:44:32 +01:00 committed by Lubomir I. Ivanov
parent 1208bc8428
commit 4296ca11a6
3 changed files with 8 additions and 31 deletions

View file

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