src/modelsubwindow.h

Tue, 11 Apr 2023 22:51:47 +0300

author
Teemu Piippo <teemu.s.piippo@gmail.com>
date
Tue, 11 Apr 2023 22:51:47 +0300
changeset 378
01537fbe096e
parent 364
39fbdee0c0c8
permissions
-rw-r--r--

remove now unneeded type alias

#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();
	}
};

mercurial