Skip to content

Commit 0ee5052

Browse files
committed
remove unnecessary changes
1 parent b2e1db5 commit 0ee5052

3 files changed

Lines changed: 0 additions & 33 deletions

File tree

include/QtNodes/internal/NodeDelegateModel.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,6 @@ class NODE_EDITOR_PUBLIC NodeDelegateModel
6868
/// Validation State will default to Valid, but you can manipulate it by overriding in an inherited class
6969
virtual NodeValidationState validationState() const { return _nodeValidationState; }
7070

71-
/// Returns the curent processing status
72-
virtual NodeProcessingStatus processingStatus() const { return _processingStatus; }
73-
7471
QJsonObject save() const override;
7572

7673
void load(QJsonObject const &) override;

src/DataFlowGraphModel.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,6 @@ QVariant DataFlowGraphModel::nodeData(NodeId nodeId, NodeRole role) const
294294
auto validationState = model->validationState();
295295
result = QVariant::fromValue(validationState);
296296
} break;
297-
298-
case NodeRole::ProcessingStatus: {
299-
auto processingStatus = model->processingStatus();
300-
result = QVariant::fromValue(processingStatus);
301-
} break;
302297
}
303298

304299
return result;
@@ -368,16 +363,6 @@ bool DataFlowGraphModel::setNodeData(NodeId nodeId, NodeRole role, QVariant valu
368363
}
369364
Q_EMIT nodeUpdated(nodeId);
370365
} break;
371-
372-
case NodeRole::ProcessingStatus: {
373-
if (value.canConvert<QtNodes::NodeProcessingStatus>()) {
374-
auto status = value.value<QtNodes::NodeProcessingStatus>();
375-
if (auto node = delegateModel<NodeDelegateModel>(nodeId); node != nullptr) {
376-
node->setNodeProcessingStatus(status);
377-
}
378-
}
379-
Q_EMIT nodeUpdated(nodeId);
380-
} break;
381366
}
382367

383368
return result;

src/DefaultNodePainter.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -328,21 +328,6 @@ void DefaultNodePainter::drawValidationIcon(QPainter *painter, NodeGraphicsObjec
328328
QPointF center(size.width(), 0.0);
329329
center += QPointF(iconSize.width() / 2.0, -iconSize.height() / 2.0);
330330

331-
<<<<<<< HEAD
332-
=======
333-
painter->save();
334-
335-
// Draw a colored circle behind the icon to highlight validation issues
336-
painter->setPen(Qt::NoPen);
337-
painter->setBrush(color);
338-
painter->drawEllipse(center, iconSize.width() / 2.0 + 2.0, iconSize.height() / 2.0 + 2.0);
339-
340-
QPainter imgPainter(&pixmap);
341-
imgPainter.setCompositionMode(QPainter::CompositionMode_SourceIn);
342-
imgPainter.fillRect(pixmap.rect(), nodeStyle.FontColor);
343-
imgPainter.end();
344-
345-
>>>>>>> f953fcab52f505a74271c5f665d6627dce63b66d
346331
painter->drawPixmap(center.toPoint() - QPoint(iconSize.width() / 2, iconSize.height() / 2),
347332
pixmap);
348333
}

0 commit comments

Comments
 (0)