Compare commits

...

2 Commits

View File

@ -11,6 +11,12 @@ int qStringToInt( const QString s )
} }
int unused( int a )
{
return( a );
}
int main( int argc, char** argv ) int main( int argc, char** argv )
{ {
QCoreApplication app( argc, argv ); QCoreApplication app( argc, argv );
@ -38,7 +44,7 @@ int main( int argc, char** argv )
QString s { QStringLiteral( "100" ) }; QString s { QStringLiteral( "100" ) };
auto ir = qStringToInt( s ); auto ir = qStringToInt( s );
QFile f; QFile* f = new QFile();
Processor p; Processor p;
QObject::connect( &app, SIGNAL(aboutToQuit()), &p, SLOT(process())); QObject::connect( &app, SIGNAL(aboutToQuit()), &p, SLOT(process()));
QTimer::singleShot( 100, &app, SLOT(quit())); QTimer::singleShot( 100, &app, SLOT(quit()));