Update the main QUndoStack when a plugin with multiple windows have a QUndoStack for every window
|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 about 1 year ago
- Status changed from New to Resolved
- Assignee set to dnk-88
dnk-88 completed this in r2029.