Stuff
This commit is contained in:
parent
9ac56d0d0b
commit
750868c63f
4 changed files with 119 additions and 16 deletions
|
|
@ -182,6 +182,13 @@ GraphEditorWidget::GraphEditorWidget(warppipe::Client *client,
|
|||
m_scene = new QtNodes::BasicGraphicsScene(*m_model, this);
|
||||
m_scene->setItemIndexMethod(QGraphicsScene::BspTreeIndex);
|
||||
|
||||
connect(m_model, &WarpGraphModel::beginBatchUpdate, this, [this]() {
|
||||
m_scene->setItemIndexMethod(QGraphicsScene::NoIndex);
|
||||
});
|
||||
connect(m_model, &WarpGraphModel::endBatchUpdate, this, [this]() {
|
||||
m_scene->setItemIndexMethod(QGraphicsScene::BspTreeIndex);
|
||||
});
|
||||
|
||||
QtNodes::ConnectionStyle::setConnectionStyle(
|
||||
R"({"ConnectionStyle": {
|
||||
"ConstructionColor": "#b4b4c8",
|
||||
|
|
@ -644,6 +651,10 @@ GraphEditorWidget::~GraphEditorWidget() {
|
|||
if (m_client) {
|
||||
m_client->SetChangeCallback(nullptr);
|
||||
}
|
||||
m_meterTimer->stop();
|
||||
m_refreshTimer->stop();
|
||||
m_changeTimer->stop();
|
||||
m_saveTimer->stop();
|
||||
}
|
||||
|
||||
int GraphEditorWidget::nodeCount() const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue