22 #include <QtConcurrentMap>
28 , mLabelingEngine( 0 )
65 QgsDebugMsg( QString(
"QThreadPool max thread count is %1" ).arg( QThreadPool::globalInstance()->maxThreadCount() ) );
85 it->context.setRenderingStopped(
true );
123 QgsDebugMsg( QString(
"waitForFinished (1): %1 ms" ).arg( t.elapsed() / 1000.0 ) );
137 QgsDebugMsg( QString(
"waitForFinished (2): %1 ms" ).arg( t.elapsed() / 1000.0 ) );
211 QgsDebugMsg( QString(
"job %1 start" ).arg(( ulong ) &job, 0, 16 ) );
215 job.renderer->render();
221 catch ( std::exception & e )
223 QgsDebugMsg(
"Caught unhandled std::exception: " + QString::fromAscii( e.what() ) );
227 QgsDebugMsg(
"Caught unhandled unknown exception" );
230 int tt = t.elapsed();
231 QgsDebugMsg( QString(
"job %1 end [%2 ms]" ).arg(( ulong ) &job, 0, 16 ).arg( tt ) );
238 QPainter painter( &self->mFinalImage );
242 drawLabeling( self->mSettings, self->mLabelingRenderContext, self->mLabelingEngine, &painter );
248 catch ( std::exception & e )
250 QgsDebugMsg(
"Caught unhandled std::exception: " + QString::fromAscii( e.what() ) );
254 QgsDebugMsg(
"Caught unhandled unknown exception" );