##// END OF EJS Templates
Adds an entry to the menu for deleting a variable...
Alexandre Leroux -
r291:b01ed1a46678
parent child
Show More
1 NO CONTENT: new file 100644, binary diff hidden
@@ -1,5 +1,6
1 1 <RCC>
2 2 <qresource prefix="/">
3 <file>icones/delete.png</file>
3 4 <file>icones/openInspector.png</file>
4 5 <file>icones/next.png</file>
5 6 <file>icones/previous.png</file>
@@ -64,6 +64,17 void VariableInspectorWidget::onTableMenuRequested(const QPoint &pos) noexcept
64 64 // Emits a signal so that potential receivers can populate the menu before displaying it
65 65 emit tableMenuAboutToBeDisplayed(&tableMenu, selectedVariables);
66 66
67 // Adds menu-specific actions
68 if (!selectedVariables.isEmpty()) {
69 // 'Delete' action
70 auto deleteFun = []() {
71 /// @todo ALX : call variable deletion
72 };
73
74 tableMenu.addSeparator();
75 tableMenu.addAction(QIcon{":/icones/delete.png"}, tr("Delete"), deleteFun);
76 }
77
67 78 if (!tableMenu.isEmpty()) {
68 79 // Generates menu header (inserted before first action)
69 80 auto firstAction = tableMenu.actions().first();
General Comments 0
You need to be logged in to leave comments. Login now