mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
1208bc8428
commit
4296ca11a6
3 changed files with 8 additions and 31 deletions
|
@ -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) :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue