ECEditor: Fixed mac build
UndoManager: Make QWidget instead of QObject the passing argument of UndoManager