mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Disable text interaction instead
This commit is contained in:
parent
1c25e35777
commit
82128c30c5
1 changed files with 6 additions and 1 deletions
|
|
@ -211,7 +211,12 @@ class ContextCardWidget(CardWidget):
|
|||
icon_widget = PublishPixmapLabel(None, self)
|
||||
icon_widget.setObjectName("ProductTypeIconLabel")
|
||||
|
||||
label_widget = QtWidgets.QLabel(CONTEXT_LABEL, self)
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue