mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-07-02 09:30:59 +02:00
fix(toolbar): toolbar menu button fixed
This commit is contained in:
committed by
Klaus Wakonig
co-authored by
Klaus Wakonig
parent
da925783a5
commit
fcee157358
@@ -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