Wysota sorry but I don't agree with you. I always search before ask here.
So please tell me where is the difference.
Franco code:
if( QString::compare(m_language,
"es") == 0 ) {
esTranslator.load("ecpstudio_es");
}
if( QString::compare(m_language,"es") == 0 )
{
QTranslator esTranslator;
esTranslator.load("ecpstudio_es");
QCoreApplication::instance()->installTranslator(&esTranslator);
}
To copy to clipboard, switch view to plain text mode
Non_franco code:
if (!window)
{
translator.load(qmFileForCheckBoxMap[checkBox]);
qApp->installTranslator(&translator);
//...more code
}
if (!window)
{
QTranslator translator;
translator.load(qmFileForCheckBoxMap[checkBox]);
qApp->installTranslator(&translator);
//...more code
}
To copy to clipboard, switch view to plain text mode
because I really can't see the difference
Bookmarks