[Macro Menu] add Recent macros to Macro menu + list size preference. Executes selected macro or if Shift+click opens macro in editor.
This commit is contained in:
committed by
Yorik van Havre
parent
2ef0017cf6
commit
4a0d127dae
@@ -1320,6 +1320,15 @@ void MainWindow::appendRecentFile(const QString& filename)
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::appendRecentMacro(const QString& filename)
|
||||
{
|
||||
RecentMacrosAction *recent = this->findChild<RecentMacrosAction *>
|
||||
(QString::fromLatin1("recentMacros"));
|
||||
if (recent) {
|
||||
recent->appendFile(filename);
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::updateActions(bool delay)
|
||||
{
|
||||
//make it safe to call before the main window is actually created
|
||||
|
||||
Reference in New Issue
Block a user