[vlmc-devel] commit: Settings: Fixed untranslated setting widget tooltips ( =?UTF-8?Q?Hugo=20Beauz=C3=A9e=2DLuyssen?==?UTF-8?Q?=20?=)

git at videolan.org git at videolan.org
Tue Nov 30 13:41:00 CET 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Tue Nov 30 13:37:32 2010 +0100| [3e9534761a9526ce0762f1bef8857141a1b06861] | committer: Hugo Beauzée-Luyssen 

Settings: Fixed untranslated setting widget tooltips

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=3e9534761a9526ce0762f1bef8857141a1b06861
---

 src/Gui/settings/PreferenceWidget.cpp |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/Gui/settings/PreferenceWidget.cpp b/src/Gui/settings/PreferenceWidget.cpp
index 373360b..bc717c8 100644
--- a/src/Gui/settings/PreferenceWidget.cpp
+++ b/src/Gui/settings/PreferenceWidget.cpp
@@ -142,4 +142,12 @@ PreferenceWidget::retranslateUi()
         i.value()->setText( tr( i.key()->name() ) );
         i.value()->setToolTip( tr( i.key()->description() ) );
     }
+
+    SettingsList::iterator      it = m_settings.begin();
+    SettingsList::iterator      ite = m_settings.end();
+    while ( it != ite )
+    {
+        (*it)->setToolTip( tr( (*it)->setting()->description() ) );
+        ++it;
+    }
 }



More information about the Vlmc-devel mailing list