Fixes in samples

* removed qSleep / dependency of Qt test libs
* QCoreApplication not required
This commit is contained in:
Klaus Basan
2014-06-15 19:19:07 +02:00
parent f0a2bc4f65
commit dbc3339599
3 changed files with 7 additions and 6 deletions

View File

@@ -6,9 +6,9 @@
#include "samplesfscommon.h"
#include "blacksim/fscommon/aircraftcfgentrieslist.h"
#include "blacksim/fscommon/aircraftindexer.h"
#include <QDebug>
#include <QFuture>
#include <QTest>
#include <QTextStream>
namespace BlackSimTest
@@ -49,7 +49,7 @@ namespace BlackSimTest
{
streamOut << ".";
streamOut.flush();
QTest::qSleep(1000 * 3);
QCoreApplication::processEvents(QEventLoop::AllEvents, 1000 * 3);
}
while (!f.isFinished());
streamOut << endl << f.result() << " entries" << endl;