remove non-concurrent branch from concurrent example
kinda stupid to have it ... Change-Id: Icb31c524e04f43b0fb966c5500e22dfd574f969f Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
5d4eda7833
commit
677825f0ba
@ -45,8 +45,6 @@
|
|||||||
#include <QGuiApplication>
|
#include <QGuiApplication>
|
||||||
#include <qtconcurrentmap.h>
|
#include <qtconcurrentmap.h>
|
||||||
|
|
||||||
#ifndef QT_NO_CONCURRENT
|
|
||||||
|
|
||||||
QImage scale(const QImage &image)
|
QImage scale(const QImage &image)
|
||||||
{
|
{
|
||||||
qDebug() << "Scaling image in thread" << QThread::currentThread();
|
qDebug() << "Scaling image in thread" << QThread::currentThread();
|
||||||
@ -70,23 +68,3 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#include <QLabel>
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
|
||||||
{
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
QString text("Qt Concurrent is not yet supported on this platform");
|
|
||||||
|
|
||||||
QLabel *label = new QLabel(text);
|
|
||||||
label->setWordWrap(true);
|
|
||||||
|
|
||||||
label->show();
|
|
||||||
qDebug() << text;
|
|
||||||
|
|
||||||
app.exec();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
Loading…
Reference in New Issue
Block a user