69 }; |
69 }; |
70 this->renderer->handleSelectionChange(resolve(selected), resolve(deselected)); |
70 this->renderer->handleSelectionChange(resolve(selected), resolve(deselected)); |
71 this->selectionChanged(resolve(this->ui.listView->selectionModel()->selection())); |
71 this->selectionChanged(resolve(this->ui.listView->selectionModel()->selection())); |
72 }); |
72 }); |
73 connect(this->model, &Model::dataChanged, this->renderer, qOverload<>(&Canvas::update)); |
73 connect(this->model, &Model::dataChanged, this->renderer, qOverload<>(&Canvas::update)); |
|
74 connect(this->renderer, &Canvas::mouseClick, this, &Document::mouseClick); |
74 } |
75 } |
75 |
76 |
76 Document::~Document() |
77 Document::~Document() |
77 { |
78 { |
78 delete &this->ui; |
79 delete &this->ui; |