From 470c2acf5a74c0197fb09cde526f3bc7161f02ef Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sat, 2 Sep 2023 19:17:19 +0200 Subject: [PATCH] Qt4 compatibility --- src/lay/lay/layMacroEditorDialog.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lay/lay/layMacroEditorDialog.cc b/src/lay/lay/layMacroEditorDialog.cc index d3e7c6259..db56a738e 100644 --- a/src/lay/lay/layMacroEditorDialog.cc +++ b/src/lay/lay/layMacroEditorDialog.cc @@ -429,13 +429,13 @@ MacroEditorDialog::MacroEditorDialog (lay::Dispatcher *pr, lym::MacroCollection connect (action, SIGNAL (triggered ()), this, SLOT (close_all_right ())); tabWidget->addAction (action); - action = new QAction (); + action = new QAction (this); action->setSeparator (true); tabWidget->addAction (action); mp_tabs_menu = new QMenu (); - action = new QAction (tr ("Tabs")); + action = new QAction (tr ("Tabs"), this); action->setMenu (mp_tabs_menu); connect (mp_tabs_menu, SIGNAL (aboutToShow ()), this, SLOT (tabs_menu_about_to_show ())); tabWidget->addAction (action); @@ -700,7 +700,7 @@ MacroEditorDialog::tabs_menu_about_to_show () for (int i = 0; i < tabWidget->count (); ++i) { MacroEditorPage *page = dynamic_cast (tabWidget->widget (i)); if (page) { - QAction *action = new QAction (tl::to_qstring (page->path ())); + QAction *action = new QAction (tl::to_qstring (page->path ()), mp_tabs_menu); action->setData (i); connect (action, SIGNAL (triggered ()), this, SLOT (tab_menu_selected ())); if (page->macro () == mp_run_macro) {