Libtranslate => LxQt::LibTranslate
authorAlexander Sokolov <sokoloff.a@gmail.com>
Sun, 6 Oct 2013 07:24:21 +0000 (11:24 +0400)
committerAlexander Sokolov <sokoloff.a@gmail.com>
Sun, 6 Oct 2013 07:24:21 +0000 (11:24 +0400)
libtranslate.h
screensaver.cpp

index ce77ed9..c568879 100644 (file)
@@ -32,6 +32,8 @@
 #include <QtCore/QCoreApplication>
 #include <QtCore/QLocale>
 #include <QtCore/QSet>
+namespace LxQt
+{
 
 inline void libTranslate(const QString &name)
 {
@@ -49,5 +51,5 @@ inline void libTranslate(const QString &name)
     QCoreApplication::installTranslator(translator);
 }
 
-
+} // namecpase LxQt
 #endif // LIBTRANSLATE_H
index 718c864..e09a1a2 100644 (file)
@@ -35,7 +35,7 @@
 ScreenSaver::ScreenSaver(QObject * parent)
     : QObject(parent)
 {
-    libTranslate("librazorqt");
+    LxQt::libTranslate("librazorqt");
     m_xdgProcess = new QProcess(this);
     connect(m_xdgProcess, SIGNAL(finished(int,QProcess::ExitStatus)),
             this, SLOT(xdgProcess_finished(int,QProcess::ExitStatus)));