src/document.cpp

changeset 108
94c92c923713
parent 104
cd4df75924b7
child 109
40a1cf2f38f5
equal deleted inserted replaced
107:02f142b399b1 108:94c92c923713
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;

mercurial