Тестовая программа
This commit is contained in:
parent
e1be3ec6cb
commit
0fe25c57a8
20
src/cmlib-example/main.cpp
Normal file
20
src/cmlib-example/main.cpp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
#include "cmlib_private_config.hpp"
|
||||||
|
|
||||||
|
#include <myx/qt/translators.hpp>
|
||||||
|
|
||||||
|
#include <QCoreApplication>
|
||||||
|
#include <QDebug>
|
||||||
|
|
||||||
|
namespace MQ = myx::qt;
|
||||||
|
|
||||||
|
int main( int argc, char** argv )
|
||||||
|
{
|
||||||
|
QCoreApplication app( argc, argv );
|
||||||
|
MQ::QTranslatorsList tl;
|
||||||
|
|
||||||
|
qDebug() << QObject::tr( "Yes" );
|
||||||
|
MQ::append_translators( tl, QStringLiteral( CMLIB_PROJECT_NAME ) );
|
||||||
|
qDebug() << QObject::tr( "Yes" );
|
||||||
|
|
||||||
|
return( 0 );
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user