]> git.lyx.org Git - lyx.git/commitdiff
Add a function to translate QStrings
authorVincent van Ravesteijn <vfr@lyx.org>
Sun, 12 May 2013 16:30:40 +0000 (18:30 +0200)
committerVincent van Ravesteijn <vfr@lyx.org>
Mon, 13 May 2013 08:00:49 +0000 (10:00 +0200)
src/frontends/qt4/qt_helpers.cpp
src/frontends/qt4/qt_helpers.h

index 17d138fc8db786c78ed55228ee63212b416b2d07..d6744525f1946603c203150b8743c2eee1508bd7 100644 (file)
@@ -227,6 +227,12 @@ QString const qt_(string const & str)
 }
 
 
+QString const qt_(QString const & qstr)
+{
+       return toqstr(_(fromqstr(qstr)));
+}
+
+
 void rescanTexStyles(string const & arg)
 {
        // Run rescan in user lyx directory
index 753fdbfad36290af46576cd349089688320378ba..7a5f8cd6dd91cf1eac34fa758e8ced56733e3ed0 100644 (file)
@@ -83,6 +83,8 @@ void setSectionResizeMode(QHeaderView * view,
  * Use this in qt4/ instead of _()
  */
 QString const qt_(std::string const & str);
+QString const qt_(QString const & qstr);
+
 
 ///
 support::FileName libFileSearch(QString const & dir, QString const & name,