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
|
@ -75,11 +75,6 @@
|
|||
<addaction name="separator"/>
|
||||
<addaction name="actionHash_images"/>
|
||||
<addaction name="actionConfigure_Dive_Computer"/>
|
||||
<addaction name="actionRecent1"/>
|
||||
<addaction name="actionRecent2"/>
|
||||
<addaction name="actionRecent3"/>
|
||||
<addaction name="actionRecent4"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionQuit"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuLog">
|
||||
|
@ -421,26 +416,6 @@
|
|||
<string notr="true">F11</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionRecent1">
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionRecent2">
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionRecent3">
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionRecent4">
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</action>
|
||||
<action name="action_Check_for_Updates">
|
||||
<property name="text">
|
||||
<string>&Check for updates</string>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue