Qt5 compatibility

This commit is contained in:
Matthias Koefferlein 2024-06-01 21:48:22 +02:00
parent c050daff61
commit 4e0b38acd5
1 changed files with 18 additions and 4 deletions

View File

@ -849,10 +849,24 @@ SearchReplaceDialog::SearchReplaceDialog (lay::Dispatcher *root, LayoutViewBase
menu->addAction (QObject::tr ("To selection"), this, SLOT (select_items ()));
export_b->setMenu (menu);
results->addAction (QObject::tr ("Export to CSV file"), this, SLOT (sel_export_csv ()));
results->addAction (QObject::tr ("Export to report database"), this, SLOT (sel_export_rdb ()));
results->addAction (QObject::tr ("Export to layout"), this, SLOT (sel_export_layout ()));
results->addAction (QObject::tr ("Export to selection"), this, SLOT (sel_select_items ()));
QAction *action;
action = new QAction (QObject::tr ("Export to CSV file"), results);
connect (action, SIGNAL (triggered ()), this, SLOT (sel_export_csv ()));
results->addAction (action);
action = new QAction (QObject::tr ("Export to report database"), results);
connect (action, SIGNAL (triggered ()), this, SLOT (sel_export_rdb ()));
results->addAction (action);
action = new QAction (QObject::tr ("Export to layout"), results);
connect (action, SIGNAL (triggered ()), this, SLOT (sel_export_layout ()));
results->addAction (action);
action = new QAction (QObject::tr ("Export to selection"), results);
connect (action, SIGNAL (triggered ()), this, SLOT (sel_select_items ()));
results->addAction (action);
results->setContextMenuPolicy (Qt::ActionsContextMenu);
bool editable = view->is_editable ();