Sun, 09 Apr 2023 16:23:05 +0300
Add undo, redo, cut, copy and paste actions to MainWindow which pass onto the editor widget
#pragma once #include <QMdiSubWindow> #include <QCloseEvent> #include "src/basics.h" class ModelSubWindow : public QMdiSubWindow { Q_OBJECT public: const ModelId modelId; explicit ModelSubWindow(ModelId modelId, QWidget* widget = nullptr) : QMdiSubWindow{widget}, modelId{modelId} { } protected: void closeEvent(QCloseEvent* event) override { event->ignore(); } };