mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-11-16 22:40:13 +01:00
fix(toolbar): toolbar menu button fixed
This commit is contained in:
1 parent
d94ef3762a
commit
bf29fdb58c
1 file changed
+2
@@ -446,6 +446,8 @@ class ExpandableMenuAction(ToolBarAction):
|
||||
|
||||
def add_to_toolbar(self, toolbar: QToolBar, target: QWidget):
|
||||
button = QToolButton(toolbar)
|
||||
button.setObjectName("toolbarMenuButton")
|
||||
button.setAutoRaise(True)
|
||||
if self.icon_path:
|
||||
button.setIcon(QIcon(self.icon_path))
|
||||
button.setText(self.tooltip)
|
||||
|
||||
Reference in new issue
Block a user