When hovering over the "resize rect" of a non-resizeable node (bottom right in the default painting style) the cursor changes to Qt::SizeFDiagCursor even tough it is not resizeable.
Potential fix
A quick search led me to the following code snippet:
Instead of using a bitwise OR (|) one should use a bitwise AND (&) operation here, since 0x0 | 0x1 (i.e. QtNodes::NoFlags OR QtNodes::Resizable) will always return true.
@ anyone who is reading this and has some spare time feel free to open a PR and apply the fix for me 😇
Summary
When hovering over the "resize rect" of a non-resizeable node (bottom right in the default painting style) the cursor changes to
Qt::SizeFDiagCursor
even tough it is not resizeable.Potential fix
A quick search led me to the following code snippet:
https://github.com/paceholder/nodeeditor/blob/5465ddc91f1b30823c5fc3def93138cbec4c9394/src/NodeGraphicsObject.cpp#L341-L346
Instead of using a bitwise OR (
|
) one should use a bitwise AND (&
) operation here, since0x0 | 0x1
(i.e.QtNodes::NoFlags
ORQtNodes::Resizable
) will always return true.@ anyone who is reading this and has some spare time feel free to open a PR and apply the fix for me 😇
Kind regards