Add a function to translate QStrings

This commit is contained in:
Vincent van Ravesteijn 2013-05-12 18:30:40 +02:00
parent 03f98402f4
commit 3e65edd729
2 changed files with 8 additions and 0 deletions

View 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

View 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,