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 connect(this->renderer, &Canvas::mouseClick, this, &Document::mouseClick); |
|
75 connect(this->renderer, &Canvas::mouseMove, this, &Document::mouseMove); |
75 } |
76 } |
76 |
77 |
77 Document::~Document() |
78 Document::~Document() |
78 { |
79 { |
79 delete &this->ui; |
80 delete &this->ui; |