diff --git a/gui/resources/icones/delete.png b/gui/resources/icones/delete.png new file mode 100644 index 0000000000000000000000000000000000000000..a9e5409ad549c425690339c69d04bc5a7bcdf478 GIT binary patch literal 834 zc%17D@N?(olHy`uVBq!ia0vp^4Is?H1|$#LC7uRSEX7WqAsj$Z!;#Vf4nJ za0`PlBg3pY5)2GXPdr^5Ln`LHy%XyvZ79PfA#<8qT^1i^q_J_yJH3e<7%UBNg<-7GI{P=jbL(t%#xU%bkAI5GS4Ijnlh?+AU z^A|B>I(A+}lj)egh$7Rmcumu$;?>M`%^$TtN-#bSe+HDe-_gz?QJ-w+HD5p?`{v%%D_0*sH%uNg5Nd+*ZCA+g_BQ*h4;KbD^RD{Yk${+!E|WPEJB z(Uqm=z0X;Wpkw>HKJK1ubSDVNzcY(N!oFh?keD$CNUXR5BsNR|5<4ydi3xXr#DXgv zZBqZ!Uo)4ya(~UdVBMtU4fE_9TX?efajGyq&-x?b!Q!`c-=T8fAI2^Ze9oQTtuE-O zp}PL9u%keB-W!3&V$*l81RH}*^Ir-z8b{wbug;{tt;U#Luq3a){F8v=@^3Zw?F37f z9c?%3SRkxxztNec_v?p3U8RgA?H_ps->g{9&yIU{=CABkI!?|Wj!ZCJN*DF@$KziBU(j_I3 + icones/delete.png icones/openInspector.png icones/next.png icones/previous.png diff --git a/gui/src/Variable/VariableInspectorWidget.cpp b/gui/src/Variable/VariableInspectorWidget.cpp index b41c187..14df440 100644 --- a/gui/src/Variable/VariableInspectorWidget.cpp +++ b/gui/src/Variable/VariableInspectorWidget.cpp @@ -64,6 +64,17 @@ void VariableInspectorWidget::onTableMenuRequested(const QPoint &pos) noexcept // Emits a signal so that potential receivers can populate the menu before displaying it emit tableMenuAboutToBeDisplayed(&tableMenu, selectedVariables); + // Adds menu-specific actions + if (!selectedVariables.isEmpty()) { + // 'Delete' action + auto deleteFun = []() { + /// @todo ALX : call variable deletion + }; + + tableMenu.addSeparator(); + tableMenu.addAction(QIcon{":/icones/delete.png"}, tr("Delete"), deleteFun); + } + if (!tableMenu.isEmpty()) { // Generates menu header (inserted before first action) auto firstAction = tableMenu.actions().first();