Skip to content

Commit e02cfbf

Browse files
authored
Merge pull request #10277 from f321x/utilities
qt: add text to toolbar button
2 parents 8a53da9 + c2068a4 commit e02cfbf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

electrum/gui/qt/my_treeview.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ def _do_toggle_config(
110110
def create_toolbar_with_menu(config: 'SimpleConfig', title):
111111
menu = QMenuWithConfig(config)
112112
toolbar_button = QToolButton()
113+
toolbar_button.setText(_('Tools'))
113114
toolbar_button.setIcon(read_QIcon("preferences.png"))
115+
toolbar_button.setToolButtonStyle(Qt.ToolButtonStyle.ToolButtonTextBesideIcon)
114116
toolbar_button.setMenu(menu)
115117
toolbar_button.setPopupMode(QToolButton.ToolButtonPopupMode.InstantPopup)
116118
toolbar_button.setFocusPolicy(Qt.FocusPolicy.NoFocus)

0 commit comments

Comments
 (0)