mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-01 12:57:51 +02:00
Replace "actionOpenRecent" with "menuOpenRecent". Add "actionOpenRecentMore" as an element in the "menuOpenRecent"-submenu.
This commit is contained in:
parent
e9e129263a
commit
b892221b9f
@ -226,6 +226,7 @@ MainWindow::MainWindow(QWidget* parent) :
|
||||
ui->toolSelect->setIcon(QIcon{":/icons/tool-select.png"});
|
||||
ui->actionOpen->setIcon(QIcon{":/icons/document-open.png"});
|
||||
ui->actionOpenRecent->setIcon(QIcon{":/icons/document-open-recent.png"});
|
||||
ui->menuOpenRecent->setIcon(QIcon{":/icons/document-open-recent.png"});
|
||||
ui->actionSave->setIcon(QIcon{":/icons/document-save.png"});
|
||||
ui->actionNew->setIcon(QIcon{":/icons/document-new.png"});
|
||||
ui->actionLevel->setIcon(QIcon{":/icons/toggle-underground.png"});
|
||||
@ -493,6 +494,11 @@ void MainWindow::on_actionOpenRecent_triggered()
|
||||
d.exec();
|
||||
}
|
||||
|
||||
void MainWindow::on_actionOpenRecentMore_triggered()
|
||||
{
|
||||
on_actionOpenRecent_triggered();
|
||||
}
|
||||
|
||||
void MainWindow::saveMap()
|
||||
{
|
||||
if(!controller.map())
|
||||
|
@ -62,6 +62,8 @@ private slots:
|
||||
|
||||
void on_actionOpenRecent_triggered();
|
||||
|
||||
void on_actionOpenRecentMore_triggered();
|
||||
|
||||
void on_actionSave_as_triggered();
|
||||
|
||||
void on_actionNew_triggered();
|
||||
|
@ -58,9 +58,15 @@
|
||||
<property name="title">
|
||||
<string>File</string>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuOpenRecent">
|
||||
<property name="title">
|
||||
<string>Open Recent</string>
|
||||
</property>
|
||||
<addaction name="actionOpenRecentMore"/>
|
||||
</widget>
|
||||
<addaction name="actionNew"/>
|
||||
<addaction name="actionOpen"/>
|
||||
<addaction name="actionOpenRecent"/>
|
||||
<addaction name="menuOpenRecent"/>
|
||||
<addaction name="actionSave"/>
|
||||
<addaction name="actionSave_as"/>
|
||||
<addaction name="actionExport"/>
|
||||
@ -1025,10 +1031,15 @@
|
||||
<property name="text">
|
||||
<string>Open Recent</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionOpenRecentMore">
|
||||
<property name="text">
|
||||
<string>More...</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+R</string>
|
||||
</property>
|
||||
</action>
|
||||
</action>
|
||||
<action name="actionSave">
|
||||
<property name="text">
|
||||
<string>Save</string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user