Translate push-button tooltips dynamically

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2026-08-18 17:07:50 +08:00
parent c932000183
commit e41c29fedc
+2 -1
View File
@@ -1808,8 +1808,9 @@ class AppQPushButton(Mixins.QTranslatable, Mixins.ThemeAware, QPushButton):
self.setIconByTheme(theme)
def retranslate(self):
"""Refresh translated text for the app q push button."""
"""Refresh translated text and tooltip for the app q push button."""
self.setText(_(self.text()))
self.setToolTip(_(self.toolTip()))
class AppQMenuPushButton(AppQPushButton):