From kde-commits Mon Feb 28 23:54:17 2005 From: Brad Hards Date: Mon, 28 Feb 2005 23:54:17 +0000 To: kde-commits Subject: kdesupport/qca/examples/randomtest Message-Id: <20050228235417.C00FD16F7D () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=110963529808094 CVS commit by bhards: Updates for Qt4 M +2 -3 randomtest.cpp 1.4 M +1 -0 randomtest.pro 1.2 --- kdesupport/qca/examples/randomtest/randomtest.cpp #1.3:1.4 @@ -27,11 +27,10 @@ int main(int argc, char **argv) { - Q_UNUSED( argv ); - Q_UNUSED( argc ); - // the Initializer object sets things up, and // also does cleanup when it goes out of scope QCA::Initializer init; + QCoreApplication app(argc, argv); + int randInt; // This is the standard way to generate a random integer. --- kdesupport/qca/examples/randomtest/randomtest.pro #1.1:1.2 @@ -1,4 +1,5 @@ TEMPLATE = app CONFIG += thread console +QT -= gui TARGET = randomtest