<div dir="ltr"><div dir="ltr"><div>Hello Guillermo,</div><div><br></div><div>Many thanks for your patches.</div><div>I applied them on the <a href="https://invent.kde.org/sdk/umbrello/">git master</a>.</div><div><br></div><div>Regards,</div><div><br></div><div>Oliver<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 25, 2022 at 6:01 PM Guillermo E. Martinez <<a href="mailto:guillermo.e.martinez@oracle.com">guillermo.e.martinez@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Umbrello team,<br>
<br>
This patch encourage to use standard location and shortcuts<br>
for {un,re}do actions.<br>
<br>
Please, if you have comments don't hesitate to let me know :-)<br>
<br>
Kind Rgerads,<br>
Guillermo<br>
<br>
<br>
This patch add support to use of standard location and shortcuts<br>
for {un,re}do actions.<br>
<br>
        * umbrello/uml.cpp (UMLApp::initActions): Use `KStandardAction::<br>
        {un,re}do' to create {un,re}do actions, adding a tooltip to<br>
        describe them.<br>
---<br>
 umbrello/uml.cpp | 8 ++++++--<br>
 1 file changed, 6 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/umbrello/uml.cpp b/umbrello/uml.cpp<br>
index c3d5b4fda..850e208c4 100644<br>
--- a/umbrello/uml.cpp<br>
+++ b/umbrello/uml.cpp<br>
@@ -316,8 +316,9 @@ void UMLApp::initActions()<br>
 #endif<br>
     QAction* fileQuit = KStandardAction::quit(this, SLOT(slotFileQuit()), actionCollection());<br>
<br>
-    editUndo = m_pUndoStack->createUndoAction(actionCollection());<br>
-    editRedo = m_pUndoStack->createRedoAction(actionCollection());<br>
+    editUndo = KStandardAction::undo(this, SLOT(slotEditUndo()), actionCollection());<br>
+    editRedo = KStandardAction::redo(this, SLOT(slotEditRedo()), actionCollection());<br>
+<br>
 #if QT_VERSION >= 0x040600<br>
     editUndo->setPriority(QAction::LowPriority);   // icon only<br>
     editRedo->setPriority(QAction::LowPriority);   // icon only<br>
@@ -431,6 +432,9 @@ void UMLApp::initActions()<br>
     editCut->setToolTip(i18n("Cuts the selected section and puts it to the clipboard"));<br>
     editCopy->setToolTip(i18n("Copies the selected section to the clipboard"));<br>
     editPaste->setToolTip(i18n("Pastes the contents of the clipboard"));<br>
+    editUndo->setToolTip(i18n("Undo last action"));<br>
+    editRedo->setToolTip(i18n("Redo last undone action"));<br>
+<br>
     preferences->setToolTip(i18n("Set the default program preferences"));<br>
<br>
     deleteSelectedWidget = actionCollection()->addAction(QLatin1String("delete_selected"));<br>
-- <br>
2.35.1<br>
<br>
</blockquote></div></div>