Skip to content

Commit 94a363b

Browse files
committed
minor fixes
1 parent 0ee5052 commit 94a363b

3 files changed

Lines changed: 12 additions & 19 deletions

File tree

external/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
if(BUILD_TESTING)
2-
find_package(Catch2 QUIET)
2+
find_package(Catch2 2.13.7 QUIET)
33

44
if(NOT Catch2_FOUND)
55
add_subdirectory(Catch2)

include/QtNodes/internal/Definitions.hpp

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,17 @@ Q_NAMESPACE_EXPORT(NODE_EDITOR_PUBLIC)
2222
* Constants used for fetching QVariant data from GraphModel.
2323
*/
2424
enum class NodeRole {
25-
Type = 0, ///< Type of the current node, usually a string.
26-
Position = 1, ///< `QPointF` positon of the node on the scene.
27-
Size = 2, ///< `QSize` for resizable nodes.
28-
CaptionVisible = 3, ///< `bool` for caption visibility.
29-
Caption = 4, ///< `QString` for node caption.
30-
Style = 5, ///< Custom NodeStyle as QJsonDocument
31-
InternalData = 6, ///< Node-stecific user data as QJsonObject
32-
InPortCount = 7, ///< `unsigned int`
33-
OutPortCount = 9, ///< `unsigned int`
34-
Widget = 10, ///< Optional `QWidget*` or `nullptr`
35-
ValidationState = 11, ///< Enum NodeValidationState of the node
36-
ProcessingStatus = 12 ///< Enum NodeProcessingStatus of the node
25+
Type = 0, ///< Type of the current node, usually a string.
26+
Position = 1, ///< `QPointF` positon of the node on the scene.
27+
Size = 2, ///< `QSize` for resizable nodes.
28+
CaptionVisible = 3, ///< `bool` for caption visibility.
29+
Caption = 4, ///< `QString` for node caption.
30+
Style = 5, ///< Custom NodeStyle as QJsonDocument
31+
InternalData = 6, ///< Node-stecific user data as QJsonObject
32+
InPortCount = 7, ///< `unsigned int`
33+
OutPortCount = 9, ///< `unsigned int`
34+
Widget = 10, ///< Optional `QWidget*` or `nullptr`
35+
ValidationState = 11 ///< Enum NodeValidationState of the node
3736
};
3837
Q_ENUM_NS(NodeRole)
3938

src/DefaultHorizontalNodeGeometry.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@ void DefaultHorizontalNodeGeometry::recomputeSize(NodeId const nodeId) const
5555
height += _portSpasing; // space above caption
5656
height += _portSpasing; // space below caption
5757

58-
QVariant var = _graphModel.nodeData(nodeId, NodeRole::ProcessingStatus);
59-
auto processingStatusValue = var.value<int>();
60-
61-
if (processingStatusValue != 0)
62-
height += 20;
63-
6458
unsigned int inPortWidth = maxPortsTextAdvance(nodeId, PortType::In);
6559
unsigned int outPortWidth = maxPortsTextAdvance(nodeId, PortType::Out);
6660

0 commit comments

Comments
 (0)