aboutsummaryrefslogtreecommitdiffstats
path: root/gui/designwidget.cc
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-11-11 10:53:48 +0100
committerMiodrag Milanovic <mmicko@gmail.com>2018-11-11 10:53:48 +0100
commitb8870bb99c24d2998ca5bb5245589dd9d0703ea4 (patch)
tree8704c16c022ff328879fa5acfc0c98699e8688eb /gui/designwidget.cc
parent3cfdb4e0c101b67dfe6d0d86174d8ed691ad9b28 (diff)
downloadnextpnr-b8870bb99c24d2998ca5bb5245589dd9d0703ea4.tar.gz
nextpnr-b8870bb99c24d2998ca5bb5245589dd9d0703ea4.tar.bz2
nextpnr-b8870bb99c24d2998ca5bb5245589dd9d0703ea4.zip
Propagate proper ctx, fixes fetchMore
Diffstat (limited to 'gui/designwidget.cc')
-rw-r--r--gui/designwidget.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/gui/designwidget.cc b/gui/designwidget.cc
index 8be71f3f..f7805320 100644
--- a/gui/designwidget.cc
+++ b/gui/designwidget.cc
@@ -297,7 +297,7 @@ void DesignWidget::newContext(Context *ctx)
auto belGetter = [](Context *ctx, BelId id) { return ctx->getBelName(id); };
getTreeByElementType(ElementType::BEL)
- ->loadData(std::unique_ptr<TreeModel::ElementXYRoot<BelId>>(
+ ->loadData(ctx, std::unique_ptr<TreeModel::ElementXYRoot<BelId>>(
new TreeModel::ElementXYRoot<BelId>(ctx, belMap, belGetter, ElementType::BEL)));
}
@@ -312,7 +312,7 @@ void DesignWidget::newContext(Context *ctx)
}
auto wireGetter = [](Context *ctx, WireId id) { return ctx->getWireName(id); };
getTreeByElementType(ElementType::WIRE)
- ->loadData(std::unique_ptr<TreeModel::ElementXYRoot<WireId>>(
+ ->loadData(ctx, std::unique_ptr<TreeModel::ElementXYRoot<WireId>>(
new TreeModel::ElementXYRoot<WireId>(ctx, wireMap, wireGetter, ElementType::WIRE)));
}
@@ -326,14 +326,14 @@ void DesignWidget::newContext(Context *ctx)
}
auto pipGetter = [](Context *ctx, PipId id) { return ctx->getPipName(id); };
getTreeByElementType(ElementType::PIP)
- ->loadData(std::unique_ptr<TreeModel::ElementXYRoot<PipId>>(
+ ->loadData(ctx, std::unique_ptr<TreeModel::ElementXYRoot<PipId>>(
new TreeModel::ElementXYRoot<PipId>(ctx, pipMap, pipGetter, ElementType::PIP)));
}
#endif
getTreeByElementType(ElementType::CELL)
- ->loadData(std::unique_ptr<TreeModel::IdStringList>(new TreeModel::IdStringList(ElementType::CELL)));
+ ->loadData(ctx, std::unique_ptr<TreeModel::IdStringList>(new TreeModel::IdStringList(ElementType::CELL)));
getTreeByElementType(ElementType::NET)
- ->loadData(std::unique_ptr<TreeModel::IdStringList>(new TreeModel::IdStringList(ElementType::NET)));
+ ->loadData(ctx, std::unique_ptr<TreeModel::IdStringList>(new TreeModel::IdStringList(ElementType::NET)));
}
updateTree();
}
@@ -367,8 +367,8 @@ void DesignWidget::updateTree()
nets.push_back(pair.first);
}
- getTreeByElementType(ElementType::CELL)->updateElements(ctx, cells);
- getTreeByElementType(ElementType::NET)->updateElements(ctx, nets);
+ getTreeByElementType(ElementType::CELL)->updateElements(cells);
+ getTreeByElementType(ElementType::NET)->updateElements(nets);
}
}
QtProperty *DesignWidget::addTopLevelProperty(const QString &id)