#include <Qtx.h>
#include <QDir>
-#include <QTranslator>
#ifdef WIN32
#include <windows.h>
#endif
myExceptHandler( hand )
{
- QString path = SUIT_Tools::dir( argv[0] ) + QDir::separator() + "../../resources";
- path = QDir::convertSeparators( QDir( path ).canonicalPath() );
-
- QTranslator* strTbl = new QTranslator( 0 );
- if ( strTbl->load( "SUITApp_msg_en.po", path ) )
- installTranslator( strTbl );
- else
- delete strTbl;
}
/*!
#endif
myExceptHandler( hand )
{
- QTranslator* strTbl = new QTranslator( 0 );
- strTbl->load( "resources\\SUITApp_msg_en.po" );
- installTranslator( strTbl );
}
/*!
*/
void SUITApp_Application::setHandler( SUIT_ExceptionHandler* hand )
{
- myExceptHandler = hand;
+ myExceptHandler = hand;
}
/*!