Feature #1450

Update the main QUndoStack when a plugin with multiple windows have a QUndoStack for every window

Added by cemycc over 7 years ago. Updated over 7 years ago.

Status:Closed Start date:03/12/2012
Priority:Normal Due date:
Assignee:dnk-88 % Done:


Category:Tools: General
Target version:Version 0.9.0


Right now on the Translation Manager plugin there is a QUndoStack for all the windows.
Normally, we need to have one QUndoStack for one window on the plugin.
I was trying to do that, I have created a QUndoStack for every window, group them with QUndoGroup
but I don't know how to tell to MainWindow ( from core plugin ) to update the QUndoStack
when I switch the window on Translation Manager.
From what I have seen on core/main_window.h a solution is to call this function MainWindow::updateContext(Core::IContext *context)
from plugin, and the QUndoStack will get updated.


#1 Updated by sfb over 7 years ago

  • Status changed from New to Resolved
  • Assignee set to dnk-88

dnk-88 completed this in r2029.

#2 Updated by sfb over 7 years ago

  • Status changed from Resolved to Closed
  • Target version set to Version 0.9.0

Also available in: Atom PDF