mirror of
https://github.com/LorenEteval/Furious.git
synced 2026-09-30 02:48:11 +03:00
Translate push-button tooltips dynamically
Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user