summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/gui/manualwidget.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2012-06-30 10:50:28 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2012-06-30 10:51:15 +0200
commit6db53f4ef8e18ae0843eb247a94ec49fdcf27662 (patch)
tree4da12ddf4f1a783abbeb00b2714e46691b282f39 /rbutil/rbutilqt/gui/manualwidget.cpp
parente8d15830685ecf2f8308ee409811b9d9c16b47a8 (diff)
downloadrockbox-6db53f4ef8e18ae0843eb247a94ec49fdcf27662.tar.gz
rockbox-6db53f4ef8e18ae0843eb247a94ec49fdcf27662.tar.bz2
rockbox-6db53f4ef8e18ae0843eb247a94ec49fdcf27662.zip
Handle language change events in widgets.
Change-Id: I54265e8c5da03e7d13217118f233effa8837f007
Diffstat (limited to 'rbutil/rbutilqt/gui/manualwidget.cpp')
-rw-r--r--rbutil/rbutilqt/gui/manualwidget.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/gui/manualwidget.cpp b/rbutil/rbutilqt/gui/manualwidget.cpp
index 78d41723c5..10407017c9 100644
--- a/rbutil/rbutilqt/gui/manualwidget.cpp
+++ b/rbutil/rbutilqt/gui/manualwidget.cpp
@@ -95,3 +95,14 @@ void ManualWidget::downloadManual(void)
installer->install();
}
+
+void ManualWidget::changeEvent(QEvent *e)
+{
+ if(e->type() == QEvent::LanguageChange) {
+ ui.retranslateUi(this);
+ updateManual();
+ } else {
+ QWidget::changeEvent(e);
+ }
+}
+