Mon, 10 Apr 2023 14:21:17 +0300
rename some functions
364
39fbdee0c0c8
I forgot to add files again... this time it's modelsubwindow.h
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
diff
changeset
|
1 | #pragma once |
39fbdee0c0c8
I forgot to add files again... this time it's modelsubwindow.h
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
diff
changeset
|
2 | #include <QMdiSubWindow> |
39fbdee0c0c8
I forgot to add files again... this time it's modelsubwindow.h
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
diff
changeset
|
3 | #include <QCloseEvent> |
39fbdee0c0c8
I forgot to add files again... this time it's modelsubwindow.h
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
diff
changeset
|
4 | #include "src/basics.h" |
39fbdee0c0c8
I forgot to add files again... this time it's modelsubwindow.h
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
diff
changeset
|
5 | |
39fbdee0c0c8
I forgot to add files again... this time it's modelsubwindow.h
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
diff
changeset
|
6 | class ModelSubWindow : public QMdiSubWindow |
39fbdee0c0c8
I forgot to add files again... this time it's modelsubwindow.h
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
diff
changeset
|
7 | { |
39fbdee0c0c8
I forgot to add files again... this time it's modelsubwindow.h
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
diff
changeset
|
8 | Q_OBJECT |
39fbdee0c0c8
I forgot to add files again... this time it's modelsubwindow.h
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
diff
changeset
|
9 | public: |
39fbdee0c0c8
I forgot to add files again... this time it's modelsubwindow.h
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
diff
changeset
|
10 | const ModelId modelId; |
39fbdee0c0c8
I forgot to add files again... this time it's modelsubwindow.h
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
diff
changeset
|
11 | explicit ModelSubWindow(ModelId modelId, QWidget* widget = nullptr) : |
39fbdee0c0c8
I forgot to add files again... this time it's modelsubwindow.h
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
diff
changeset
|
12 | QMdiSubWindow{widget}, |
39fbdee0c0c8
I forgot to add files again... this time it's modelsubwindow.h
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
diff
changeset
|
13 | modelId{modelId} |
39fbdee0c0c8
I forgot to add files again... this time it's modelsubwindow.h
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
diff
changeset
|
14 | { |
39fbdee0c0c8
I forgot to add files again... this time it's modelsubwindow.h
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
diff
changeset
|
15 | } |
39fbdee0c0c8
I forgot to add files again... this time it's modelsubwindow.h
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
diff
changeset
|
16 | protected: |
39fbdee0c0c8
I forgot to add files again... this time it's modelsubwindow.h
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
diff
changeset
|
17 | void closeEvent(QCloseEvent* event) override |
39fbdee0c0c8
I forgot to add files again... this time it's modelsubwindow.h
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
diff
changeset
|
18 | { |
39fbdee0c0c8
I forgot to add files again... this time it's modelsubwindow.h
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
diff
changeset
|
19 | event->ignore(); |
39fbdee0c0c8
I forgot to add files again... this time it's modelsubwindow.h
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
diff
changeset
|
20 | } |
39fbdee0c0c8
I forgot to add files again... this time it's modelsubwindow.h
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
diff
changeset
|
21 | }; |