Merge pull request #1551 from BigRoy/enhancement/context_label_remove_span

Publisher: Fix Context card being clickable in Nuke 14/15 only outside the Context label area
This commit is contained in:
Jakub Trllo 2025-11-17 15:03:00 +01:00 committed by GitHub
commit 6f99cd0bef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -212,6 +212,11 @@ class ContextCardWidget(CardWidget):
icon_widget.setObjectName("ProductTypeIconLabel")
label_widget = QtWidgets.QLabel(f"<span>{CONTEXT_LABEL}</span>", self)
# HTML text will cause that label start catch mouse clicks
# - disabling with changing interaction flag
label_widget.setTextInteractionFlags(
QtCore.Qt.NoTextInteraction
)
icon_layout = QtWidgets.QHBoxLayout()
icon_layout.setContentsMargins(5, 5, 5, 5)