swissChili | 25620b0 | 2022-02-23 17:15:16 -0800 | [diff] [blame^] | 1 | #include "Notebook.h" |
2 | #include "CellModel.h" | ||||
3 | |||||
4 | Notebook::Notebook(QObject *parent) | ||||
5 | : QObject(parent) | ||||
6 | , _cellModel(new CellModel(this)) | ||||
7 | { | ||||
8 | |||||
9 | } | ||||
10 | |||||
11 | Notebook::Notebook(const Notebook &other, QObject *parent) | ||||
12 | : QObject(parent) | ||||
13 | , _cells(other._cells) | ||||
14 | , _cellModel(new CellModel(this)) | ||||
15 | { | ||||
16 | } | ||||
17 | |||||
18 | CellModel *Notebook::cellModel() | ||||
19 | { | ||||
20 | return _cellModel; | ||||
21 | } |