mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
fixed popupMode property
This commit is contained in:
parent
ae20e682f8
commit
16a258bc27
2 changed files with 1 additions and 5 deletions
|
|
@ -77,10 +77,6 @@ class CustomCombo(QtWidgets.QWidget):
|
|||
toolbutton.setMenu(toolmenu)
|
||||
toolbutton.setPopupMode(QtWidgets.QToolButton.MenuButtonPopup)
|
||||
|
||||
# Fake popupMenu property as PySide2 does not store it's value as
|
||||
# integer but as enum object
|
||||
toolbutton.setProperty("popup_mode", "1")
|
||||
|
||||
layout = QtWidgets.QHBoxLayout(self)
|
||||
layout.setContentsMargins(0, 0, 0, 0)
|
||||
layout.addWidget(toolbutton)
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ QToolButton:disabled {
|
|||
background: {color:bg-buttons-disabled};
|
||||
}
|
||||
|
||||
QToolButton[popupMode="1"], QToolButton[popup_mode="1"] {
|
||||
QToolButton[popupMode="1"], QToolButton[popupMode="MenuButtonPopup"] {
|
||||
/* make way for the popup button */
|
||||
padding-right: 20px;
|
||||
border: 1px solid {color:bg-buttons};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue