diff -r 7c27cda03747 -r 97df974b5ed5 src/document.cpp --- a/src/document.cpp Fri Mar 06 23:45:44 2020 +0200 +++ b/src/document.cpp Mon Mar 09 14:21:54 2020 +0200 @@ -41,11 +41,11 @@ this->setMouseTracking(true); connect(this->ui.splitter, &QSplitter::splitterMoved, this, &Document::splitterChanged); connect(this->renderer, &Canvas::newStatusText, this, &Document::newStatusText); - connect(this->renderer, &Canvas::selectionChanged, [&](const QSet& newSelection) + connect(this->renderer, &Canvas::selectionChanged, [&](const QSet& newSelection) { QItemSelectionModel* selectionModel = this->ui.listView->selectionModel(); QItemSelection selection; - for (ldraw::Id id : newSelection) + for (ldraw::id_t id : newSelection) { QModelIndex index = this->model->lookup(id); if (index != QModelIndex{}) @@ -61,7 +61,7 @@ auto resolveIndex = [this](const QModelIndex& index){ return this->model->resolve(index); }; auto resolve = [resolveIndex](const QItemSelection& selection) { - return fn::map>(selection.indexes(), resolveIndex); + return fn::map>(selection.indexes(), resolveIndex); }; this->renderer->handleSelectionChange(resolve(selected), resolve(deselected)); });