src/modelsubwindow.h

Mon, 10 Apr 2023 12:40:49 +0300

author
Teemu Piippo <teemu.s.piippo@gmail.com>
date
Mon, 10 Apr 2023 12:40:49 +0300
changeset 369
57de8fab2237
parent 364
39fbdee0c0c8
permissions
-rw-r--r--

isConvex renamed to quadrilateral_convexity, refactor, now returns an enum instead of bool

#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