Added dynamic translation for tooltip in AppQPushButton

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 b59d522d56
commit e9b50c8b30
+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):