19 template <
typename Fun>
21 : menu{
new QMenu{parent}}
22 , deleteAction{menu->addAction(QObject::tr(
"Disable"))}
23 , editAction{menu->addAction(QObject::tr(
"Edit"))}
25 connect(editAction, &QAction::triggered,
this, [
this, f = std::move(f)] {
27 auto str = QInputDialog::getText(
28 nullptr, tr(
"Edit expression"), tr(
"Edit expression"), QLineEdit::Normal,
31 expressionChanged(std::move(str));
36 QAction* deleteAction{};
37 QAction* editAction{};
40 void expressionChanged(QString arg_1) W_SIGNAL(expressionChanged, arg_1);